Add method to delete a item to DB

@param int $identifier
334600
public function delete($object, $where_filter_id) {
        $this->dbConfig()->setTYpe(DbExecutionType::DELETE);
        $delete_clause = "DELETE from `" . $this->GetTableName($object) . "` WHERE $where_filter_id = " . $object->$where_filter_id() . ";";
        $sth = $this->dao->prepare($delete_clause);
        return $this->ExecuteQuery($sth, $params);
    }
445580
public function unregister($identifier, $type = "")
    {
        if (!$this->isRegistered($identifier, $type)) {
            throw new RegistryException(
                RegistryException::UNKNOWN_IDENTIFIER_TEXT . '(identifier: ' . $identifier . ')',
                RegistryException::UNKNOWN_IDENTIFIER_CODE
            );
        }

        $this->getESAdaptor()->removeDocuments(array($identifier), $this->section, $type);
    }
398943
public static function remove($id)
    {
        $s = new static();

        if (is_int($id)) {
            $where = "id = {$id}";
            self::$db->delete($s::$entity_table, $where);
        } else {
            throw new IDShouldBeNumber('Pass in an ID as the parameter, ID has to be a number', 1);
        }
    }
731866
public function removeFavorite(int $identifier): bool
    {
        $response = $this->client->performApiCall(
            'delete',
            sprintf('user/favorites/%d', (int) $identifier),
            [
                'http_errors' => false
            ]
        );

        return $response->getStatusCode() === 200 && $response->getReasonPhrase() === 'OK';
    }
486125
public function findOneByIdentifier($identifier) {
		$statement = $this->connection->prepare('SELECT * FROM objects WHERE __identifier__ = :identifier LIMIT 1');
		$statement->bindValue(':identifier', $identifier);

		return $statement->execute()->fetchArray(SQLITE3_ASSOC);
	}
165949
protected function registerIdentifier( $id = null, $attributes = array(), $identifier = null )
    {
        $identifier = ( $identifier !== null ) ? $identifier : $this->generateIdentifier( $id, $attributes );
        $location = $this->properties['location'];

        $this->fetchSearchRegistry();

        // Makes sure the identifier exists
        if ( !isset( $this->searchRegistry[$location][$id][$identifier] ) )
        {
            // Makes sure the id exists
            if ( !isset( $this->searchRegistry[$location][$id] )
                 || !is_array( $this->searchRegistry[$location][$id] ) )
            {
                $this->searchRegistry[$location][$id] = array();
            }

            $this->searchRegistry[$location][$id][$identifier] = new ezcCacheStorageMemoryRegisterStruct( $id, $attributes, $identifier, $location );
            $this->storeSearchRegistry();
        }
    }
1002232
public function delete($table, $row, $identifier = [])
    {
        if (!array_key_exists($table, $this->rows)) {
            $this->loadTable($table);
        }

        if (empty($identifier)) {
            $identifier = $this->sanitiseRow($table, $row);
        }

        $rows = [];

        foreach ($this->rows[$table] as $key => $row) {
            if ($this->match($row, $identifier)) {
                $rows[] = $key;
            }
        }

        if (empty($rows)) {
            throw new \RuntimeException("No matching entry found in {$table}.csv");
        }

        foreach ($rows as $key) {
            unset($this->rows[$table][$key]);
        }
    }
276605
public function registerObject($object, $identifier)
    {
        $this->objectMap[$object] = $identifier;
        $this->identifierMap[$identifier] = $object;
    }
674667
public function remove($identifier)
    {
        if (!array_key_exists($identifier, $this->variables)) {
            throw new InvalidVariableException('Tried to remove a variable "' . $identifier . '" which is not stored in the context!', 1224479372);
        }
        unset($this->variables[$identifier]);
    }
849130
public function disable(int $identifier): void
    {
        $query = $this->getConnection()->createQueryBuilder();

        $schema = $this->getDatabaseSchema();
        $query
            ->update($this->getTableNameForWriting())
            ->where($this->getPrimaryKeyName() . '=' . $this->createTypedParameter($query, $identifier))
            ->set($schema->getTokensIsEnabledColumn(), $this->createTypedParameter($query, false));

        $numberOfUpdated = $query->execute();
        assert(is_int($numberOfUpdated) === true);
    }
841338
static function removeByID( $id )
    {
        $db = eZDB::instance();
        $db->begin();
        eZPersistentObject::removeObject( eZMultiPriceData::definition(),
                                          array( 'id' => $id ) );
        $db->commit();
    }
688930
public function remove($typeKey, $identifier)
    {
        if (isset($this->models[$typeKey][$identifier])) {
            unset($this->models[$typeKey][$identifier]);
        }
        return $this;
    }
530770
public function remove($identifier)
    {
        $keys = $this->_parseIdentifier($identifier);

        foreach($keys as $key)
        {
            if(array_key_exists($key, $this->_data))
            {
                unset($this->_data[$key]);
                break;
            };
        }

        return $this;
    }
1277792
public function delete($identifier)
    {
        return $this->repository->makeQuery()
            ->findOrFail($identifier, [$this->repository->makeModel()->getKeyName()])
            ->delete();
    }
575095
public function addFieldDefinitionObject($identifier, $fieldDefinition)
    {
        $this->data['fields'][$identifier] = $this->convertToFieldDefintionObject($identifier, $fieldDefinition);
    }
505951
public function setIdentifier($identifier)
    {
        if (is_string($identifier) === false || empty($identifier) === true) {
            throw new InvalidArgumentException(
                "The 'identifier' argument must be a non-empty string."
            );
        }
        
        $this->identifier = $identifier;
    }
806767
public function remove($identifier)
    {
        $presets = $this->loadPresets();
        if (empty($presets[$identifier])) {
            throw new Exception('Could not find preset', 1410549993);
        }
        unset($presets[$identifier]);
        $this->savePresets($presets, 'Removes preset with identifier "' . $identifier . '"');
    }