Deletes session data.

@param string $identifier	The identifier you want to delete.
@return null
181880
public function delete($identifier = null) {
		if ($this->get($identifier) === null) return;
		$this->arrayDelete(self::$_data, '_session_class._standard.' . $this->section . ($identifier !== null ? '.' . $identifier : ''));
	}
535236
public function getMetadataValue($identifier)
    {
        $metadata = $this->getMetadataValues();
        return isset($metadata[$identifier]) ? $metadata[$identifier] : null;
    }
407236
public function removeIdentifier($identifier)
    {
        if (isset($this->identifiers[$identifier])) {
            unset($this->identifiers[$identifier]);
        }

        return $this;
    }
1135544
public function getModifier($identifier)
    {
        $modifiers = $this->getModifiers();
        return isset($modifiers[$identifier]) ? $modifiers[$identifier] : null;
    }
1320108
public function unregisterEngine($identifier)
    {
        $result = false;

        if(strpos($identifier, '.') !== false )
        {
            $identifier = $this->getIdentifier($identifier);
            $class      = $this->getObject('manager')->getClass($identifier);

            if(!$class || !array_key_exists('KTemplateEngineInterface', class_implements($class)))
            {
                throw new UnexpectedValueException(
                    'Engine: '.$identifier.' does not implement KTemplateEngineInterface'
                );
            }

            $types = call_user_func(array($class, 'getFileTypes'));/*$class::getFileTypes();*/

        }
        else $types = (array) $identifier;

        if (!empty($types))
        {
            foreach($types as $type)
            {
                if($this->isRegistered($type)) {
                    unset($this->__engines[$type]);
                }
            }
        }

        return $result;
    }
577522
public function restore($identifier)
    {
        if( ! $this->storedCartWithIdentifierExists($identifier)) {
            return;
        }

        $stored = $this->getConnection()->table($this->getTableName())
            ->where('identifier', $identifier)->first();

        $storedContent = unserialize($stored->content);

        $currentInstance = $this->currentInstance();

        $this->instance($stored->instance);

        $content = $this->getContent();

        foreach ($storedContent as $cartItem) {
            $content->put($cartItem->rowId, $cartItem);
        }

        $this->events->fire('cart.restored');

        $this->session->put($this->instance, $content);

        $this->instance($currentInstance);

        $this->getConnection()->table($this->getTableName())
            ->where('identifier', $identifier)->delete();
    }
877291
public function remove($identifier): Option
    {
        foreach ($this->queue as $key => $item) {
            if ($item->getMessage()->getIdentifier() === $identifier) {
                unset($this->queue[$key]);

                return Option::fromValue($item);
            }
        }

        return None::create();
    }
1015456
public function delete(int $identifier): void
    {
        try {
            $this->deleteResource($identifier);
        } catch (RepositoryException $exception) {
            $message = 'Client redirect URI deletion failed.';
            throw new RepositoryException($message, 0, $exception);
        }
    }
90135
protected function deleteJoinTableRecords($identifier)
    {
        foreach ($this->class->getDeclaredPropertiesIterator() as $association) {
            if (! ($association instanceof ManyToManyAssociationMetadata)) {
                continue;
            }

            // @Todo this only covers scenarios with no inheritance or of the same level. Is there something
            // like self-referential relationship between different levels of an inheritance hierarchy? I hope not!
            $selfReferential   = $association->getTargetEntity() === $association->getSourceEntity();
            $owningAssociation = $association;
            $otherColumns      = [];
            $otherKeys         = [];
            $keys              = [];

            if (! $owningAssociation->isOwningSide()) {
                $class             = $this->em->getClassMetadata($association->getTargetEntity());
                $owningAssociation = $class->getProperty($association->getMappedBy());
            }

            $joinTable     = $owningAssociation->getJoinTable();
            $joinTableName = $joinTable->getQuotedQualifiedName($this->platform);
            $joinColumns   = $association->isOwningSide()
                ? $joinTable->getJoinColumns()
                : $joinTable->getInverseJoinColumns();

            if ($selfReferential) {
                $otherColumns = ! $association->isOwningSide()
                    ? $joinTable->getJoinColumns()
                    : $joinTable->getInverseJoinColumns();
            }

            $isOnDeleteCascade = false;

            foreach ($joinColumns as $joinColumn) {
                $keys[] = $this->platform->quoteIdentifier($joinColumn->getColumnName());

                if ($joinColumn->isOnDeleteCascade()) {
                    $isOnDeleteCascade = true;
                }
            }

            foreach ($otherColumns as $joinColumn) {
                $otherKeys[] = $this->platform->quoteIdentifier($joinColumn->getColumnName());

                if ($joinColumn->isOnDeleteCascade()) {
                    $isOnDeleteCascade = true;
                }
            }

            if ($isOnDeleteCascade) {
                continue;
            }

            $this->conn->delete($joinTableName, array_combine($keys, $identifier));

            if ($selfReferential) {
                $this->conn->delete($joinTableName, array_combine($otherKeys, $identifier));
            }
        }
    }
806841
public function get($identifier)
    {
        $identifier = (string) $identifier;

        if($this->offsetExists($identifier)) {
            $result = $this->offsetGet($identifier);
        } else {
            $result = null;
        }

        return $result;
    }
684935
public function getParameterType($identifier)
    {
        return isset($this->parameterTypes[$identifier]) ? $this->parameterTypes[$identifier] : null;
    }
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';
    }
104072
public function Delete($sId = null)
    {
        if (null === $sId) {
            parent::Delete($sId);

            return;
        }
        $iArticleId = null;
        $query = "SELECT * FROM shop_article_review WHERE `id` = '".\MySqlLegacySupport::getInstance()->real_escape_string($sId)."'";
        if ($aReview = \MySqlLegacySupport::getInstance()->fetch_assoc(\MySqlLegacySupport::getInstance()->query($query))) {
            $iArticleId = $aReview['shop_article_id'];
        }
        parent::Delete($sId);
        if (!is_null($iArticleId)) {
            $this->UpdateArticleReviewStats($iArticleId);
        }
    }
1027864
protected function _getCount($identifier) {
		$count = $this->_getCountQuery($identifier)->count();
		if ($count === 0) {
			$this->out(__d('file_storage', 'No records for identifier "{0}" found.', $identifier));
			$this->_stop();
		}

		return $count;
	}
43860
public function isRegistered($identifier)
    {
        if (false === parent::isRegistered($identifier)) {
            $entity = $this->getContentById($identifier);

            if (!empty($entity)) {
                return true;
            }
        } else {

            return true;
        }

        return false;
    }
796058
public function loadGroupDataByIdentifier($identifier)
    {
        try {
            return $this->innerGateway->loadGroupDataByIdentifier($identifier);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
1323233
public static function driverClass($identifier) {
		if (!isset(self::$registry[$identifier])) {
			return null;
		}

		return self::$registry[$identifier];
	}