Removes the database of id $dbid from the internal KeePassPHP database.
@param $dbid A database ID.
@param $kphpdbPwd The password of the KphpDB file.
@return true if the database $dbid existed and could be removed,
false otherwise.
3408
public static function removeDatabase($dbid, $kphpdbPwd)
	{
		if(!self::$_started)
		{
			self::addDebug("KeepassPHP is not started!");
			return false;
		}

		try
		{
			$kphpdb = self::openKphpDB($dbid, $kphpdbPwd);
			$hash = $kphpdb->getDBFileHash();
			if($hash !== null)
			{
				if(!self::$_databaseManager->remove($hash))
					self::addDebug("Cannot delete database '" . $hash . "'.");
			}
			$hash = $kphpdb->getKeyFileHash();
			if($hash !== null)
			{
				if(!self::$_keyManager->remove($hash))
					self::addDebug("Cannot delete key file '" . $hash . "'.");
			}
			return self::$_kphpdbManager->removeFromKey($dbid);
		}
		catch(KeePassPHPException $exception)
		{
			self::raiseError($exception);
			return false;
		}
	}
1306471
public function destroy($sessionId) {
        try {
            $this->_tableRestProxy->deleteEntity($this->_sessionContainer, $this->_sessionContainerParition, $sessionId);
            return TRUE;
        } catch (ServiceException $e) {
            return FALSE;
        }
    }
1062780
public function mfaTokenDelete($iTokenId)
    {
        $oDb = Factory::service('Database');
        $oDb->where('id', $iTokenId);
        $oDb->delete(NAILS_DB_PREFIX . 'user_auth_two_factor_token');
        return (bool) $oDb->affected_rows();
    }
1349976
public function remove($id)
    {
        try {
            if ($this->softDelete) {
                $removed = [];
                $removed[$this->primaryKey] = $id;
                $removed[$this->softDeleteName] = date('Y-m-d H:i:s');

                $this->save($removed);
            } else {
                $this->db->delete($this->table, array(
                    $this->primaryKey => $id
                ));
            }

            return true;
        } catch (\Exception $e) {
            return false;
        }
    }
1091212
public function deleteBrokenLinks($postId)
    {
        global $wpdb;
        $tableName = self::$dbTable;
        $wpdb->delete($tableName, array('post_id' => $postId), array('%d'));
    }
1328996
public function rollBack($xid)
    {
        if ($this->activeTransaction != $xid || $this->activeTransaction === false) {
            return;
        }

        $this->activeTransaction = false;

        if (!$this->connection->rollBack()) {
            throw new DbException("Rollback failed");
        }
    }
1211110
public function destroy($session_id)
	{
		// Get the database connection object and verify its connected.
		if (!$this->connection->connected())
		{
			return false;
		}

		try
		{
			$query = $this->connection->getQuery()
				->delete('#__session')
				->whereEquals('session_id', $session_id);

			// Remove a session from the database.
			$this->connection->setQuery($query->toString());

			return (boolean) $this->connection->execute();
		}
		catch (Exception $e)
		{
			return false;
		}
	}
79292
public function destroy( $sessionId )
    {
        ezpEvent::getInstance()->notify( 'session/destroy', array( $sessionId ) );

        $db = eZDB::instance();
        $escKey = $db->escapeString( $sessionId );

        eZSession::triggerCallback( 'destroy_pre', array( $db, $sessionId, $escKey ) );
        $db->query( "DELETE FROM ezsession WHERE session_key='$escKey'" );
        eZSession::triggerCallback( 'destroy_post', array( $db, $sessionId, $escKey ) );

        return true;
    }
706114
protected function doDestroy($sessionId): bool
    {
        $this->getFacade()->delete($this->prefix . $sessionId);

        return true;
    }
521896
public function delete($sOxId = null)
    {
        if (parent::delete($sOxId)) {
            $sOxId = $sOxId ? $sOxId : $this->getId();
            $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

            // deleting payment related data
            $rs = $oDb->execute("delete from oxobject2payment where oxpaymentid = " . $oDb->quote($sOxId));

            return $rs->EOF;
        }

        return false;
    }
729333
public function destroy($sessionId): bool
    {
        $identifier = $this->cryptProvider->makeSessionIdentifier($sessionId);

        try {
            $this->storageDriver->destroy($identifier);
            return true;
        } catch (Exception $e) {
            return false;
        }
    }
1142050
public function delete($sOXID = null)
    {
        if (!$sOXID) {
            $sOXID = $this->getId();
        }

        if (parent::delete($sOXID)) {
            \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\SeoEncoderContent::class)->onDeleteContent($sOXID);

            return true;
        }

        return false;
    }
502767
public static function ClearAuthentication($guid = "CURRENT_USER")
	{
		self::Init();
		self::$user = null;
		unset($_SESSION[$guid]);
		
		self::UnsetAllSessionVars();
		
		@session_destroy();
	}
180826
public function updateMysqlDatabase($serverId, $databaseId, array $data)
    {
        return new MysqlDatabase(
            $this->put("servers/$serverId/mysql/$databaseId", $data)['database']
            + ['server_id' => $serverId], $this
        );
    }
1300544
public function deleteCalendar($calendarId)
    {
        $stmt = $this->pdo->prepare('DELETE FROM simple_calendarobjects WHERE calendarid = ?');
        $stmt->execute([$calendarId]);

        $stmt = $this->pdo->prepare('DELETE FROM simple_calendars WHERE id = ?');
        $stmt->execute([$calendarId]);
    }
281898
function removeThis( $id = false )
    {
        $db = eZDB::instance();
        $db->begin();
        foreach ( $this->attribute( 'limitations' ) as $limitation )
        {
            $limitation->removeThis();
        }
        $db->query( "DELETE FROM ezpolicy
                     WHERE id='" . $db->escapeString( $this->attribute( 'id' ) ) . "'" );
        $db->commit();
    }
954456
public function delete($sOxId = null)
    {
        if (!$sOxId) {
            $sOxId = $this->getId();
        }

        $this->unsetDiscountRelations();
        $this->unsetUserGroups();
        $this->deleteVoucherList();

        return parent::delete($sOxId);
    }