{@inheritDoc}
@see \Ness\Component\User\Storage\UserStorageInterface::delete()
760680
public function delete(): bool
    {
        if(!isset($this->session[self::NATIVE_SESSION_USER_IDENTIFIER]))
            return false;
        
        unset($this->session[self::NATIVE_SESSION_USER_IDENTIFIER]);
        
        return true;
    }
1338678
public function delete($id)
    {
        $this->loadModel('User.Roles');
        $role = $this->Roles->get($id);

        if (!in_array($role->id, [ROLE_ID_ADMINISTRATOR, ROLE_ID_AUTHENTICATED, ROLE_ID_ANONYMOUS])) {
            if ($this->Roles->delete($role)) {
                $this->Flash->success(__d('user', 'Role was successfully removed!'));
            } else {
                $this->Flash->danger(__d('user', 'Role could not be removed'));
            }
        } else {
            $this->Flash->danger(__d('user', 'This role cannot be deleted!'));
        }

        $this->title(__d('user', 'Remove User Role'));
        $this->redirect($this->referer());
    }
1210895
public function remove($id)
    {
        if ($this->fileSystem->has($id)) {
            $this->fileSystem->delete($id);
        }
    }
267782
public function remove($key): void
	{
		$this->cachedStorage->remove($key);
		$this->memoryStorage->remove($key);
	}
167726
public function delete( $key ) {
		$storage = $this->storage;
		if ( $this->exists( $key ) ) {
			unset( $storage[ $key ] );
		}

		return new static( $this->get_key_type(), $this->get_value_type(), $storage );
	}
1207822
public function delete($recursive = true) {
		$this->deleteImages();
		$this->deleteAlbumDir();

		return parent::delete($recursive);
	}
84515
public function delete(Userinfo $userinfo)
	{
		$result = false;

		$this->debugger->set(null, array());

		//create an array to store the debug info
		$debug_info = array();
		$error_info = array();

		$plugins = Factory::getPlugins();

		$userinfo = User::search($userinfo);
		if ($userinfo instanceof Userinfo) {
			foreach ($plugins as $plugin) {
				$params = Factory::getParams($plugin->name);
				if ($params->get('allow_delete_users', 0)) {
					$userPlugin = Factory::getUser($plugin->name);
					try {
						$pluginUser = $userPlugin->getUser($userinfo);

						if ($pluginUser instanceof Userinfo) {
							$userPlugin->resetDebugger();
							$deleteStatus = $userPlugin->deleteUser($pluginUser);
							$status = $userPlugin->debugger->get();
							if ($deleteStatus) {
								//remove userlookup data
								User::remove($pluginUser);
								$status[LogLevel::DEBUG][] = Text::_('USER_DELETION') . ': ' . $userinfo->userid . ' ( ' . $userinfo->username . ' )';
							}
							if (!empty($status[LogLevel::ERROR])) {
								$error_info[$plugin->name . ' ' . Text::_('USER_DELETION_ERROR') ] = $status[LogLevel::ERROR];
							}
							if (!empty($status[LogLevel::DEBUG])) {
								$debug_info[$plugin->name] = $status[LogLevel::DEBUG];
							}
						} else {
							$debug_info[$plugin->name] = Text::_('NO_USER_DATA_FOUND');
						}
					} catch (Exception $e) {
						$error_info[$plugin->name . ' ' . Text::_('USER_DELETION_ERROR') ] = $e->getMessage();
					}
				} else {
					$debug_info[$plugin->name] = Text::_('DELETE_DISABLED');
				}
			}
			$result = true;
		} else {
			$result = false;
		}
		$this->debugger->set('debug', $debug_info);
		$this->debugger->set('error', $error_info);
		return $result;
	}
11471
public function delete()
    {
        if (isset($this->onDelete)) {
            return call_user_func($this->onDelete, $this);
        }

        $this->forceDelete();
    }
1114957
public function delete() : void
    {
        $files = $this->getFiles();
        foreach($files as $file) {
            $file->delete();
        }
        rmdir($this->path);
    }
156537
public function delete()
    {
        $where = [static::$primary_key => $this->getPrimaryKey()];

        $this->connection->delete(static::$table, $where);
        $this->setStored(false);

        return $this;
    }
1162962
public function delete()
	{
		try 
		{
			unlink($this->getName());
			return self::FILE_DELETE_SUCCESS;
		} 
		catch (Exception $e) 
		{
			return self::FILE_DELETE_ERROR;
		}
	}
833911
public function deleteUser($id)
    {
        $user = $this->getRepository()->find($id);

        if (!$user) {
            $this->app['logger.flash']->warning(Trans::__('general.phrase.user-not-exist'));

            return false;
        }

        $userId = $user->getId();
        if ($result = $this->getRepository()->delete($user)) {
            /** @var Repository\AuthtokenRepository $authtokenRepository */
            $authtokenRepository = $this->app['storage']->getRepository(Entity\Authtoken::class);
            $authtokenRepository->deleteTokens($userId);
        }

        return $result;
    }
542173
public function deleteUser($username) {
    $users = \Drupal::entityQuery('user')
      ->condition("name", $username)
      ->execute();

    /** @var \Drupal\user\Entity\User $users */
    $users = User::loadMultiple($users);
    foreach ($users as $user) {
      $user->delete();
    }
  }
543039
public function delete() {

		if(false !== $this -> file -> getExists()) {

			if(unlink($this -> file -> getBasepath())) {
				$this -> refresh();
			}
		}

		return $this;
	}
855794
public function delete($key)
    {
        try {
            $this->_unsetData($key);
        } catch (RootException $e) {
            throw $this->_createContainerException($this->__('Could not delete data'), null, $e, $this);
        }
    }
683976
public function delete()
    {
        if ($this->getCacheBusting()) {
            $this->queryCache()->flush($this->getTable());
        }

        return parent::delete();
    }
612236
public function delete()
    {
        try {
            $this->getClient()->delete($this->getUrl());
        } catch (ClientException $e) {
            $statusCode = $e->getResponse()->getStatusCode();

            if (HttpResponse::HTTP_NOT_FOUND === $statusCode || HttpResponse::HTTP_GONE === $statusCode) {
                throw new FileException('File not found.');
            }
        }
    }