public function remove()
{
try {
$delete = $this->pdo->prepare("DELETE FROM TokenBucket WHERE name = ?");
$delete->execute([$this->name]);
$count = $this->querySingleValue("SELECT count(*) FROM TokenBucket");
if ($count == 0) {
$this->pdo->exec("DROP TABLE TokenBucket");
}
} catch (\PDOException $e) {
throw new StorageException("Failed to remove the storage.", 0, $e);
}
}