public function deletePublicKey($publicKey)
{
try {
$result = $this->getAclCollection()->deleteOne(['publicKey' => $publicKey]);
unset($this->publicKeys[$publicKey]);
return (bool) $result->getDeletedCount();
} catch (MongoException $e) {
throw new DatabaseException('Could not delete key from database', 500, $e);
}
}