function delete( $for_real = false ) {

		/** @var $wpdb \wpdb */
		global $wpdb;

		if ( $for_real ) {
			return $wpdb->delete(
				$this->dbTable, [
					'users_id' => $this->userId,
				], [ '%d' ]
			);
		} else {
			return $wpdb->update(
				$this->dbTable, [
					'deleted' => 1,
				], [
					'users_id' => $this->userId,
				], [ '%d' ], [ '%d' ]
			);
		}
	}
function delete( $for_real = false ) {

		/** @var $wpdb \wpdb */
		global $wpdb;

		if ( $for_real ) {
			return $wpdb->delete(
				$this->dbTable, [
					'users_id' => $this->userId,
				], [ '%d' ]
			);
		} else {
			return $wpdb->update(
				$this->dbTable, [
					'deleted' => 1,
				], [
					'users_id' => $this->userId,
				], [ '%d' ], [ '%d' ]
			);
		}
	}
function delete ( $ for_real = false ) { /** @var $wpdb \wpdb */ global $ wpdb ; if ( $ for_real ) { return $ wpdb -> delete ( $ this -> dbTable , [ 'users_id' => $ this -> userId , ] , [ '%d' ] ) ; } else { return $ wpdb -> update ( $ this -> dbTable , [ 'deleted' => 1 , ] , [ 'users_id' => $ this -> userId , ] , [ '%d' ] , [ '%d' ] ) ; } }
Delete an entire catalog.

@param bool $for_real (optional)

@return int|false
Delete an entire catalog .