protected function removeHash($hash) { $hash = $this->db->sanitizeString($hash); $query = "DELETE FROM {$this->table} WHERE code = '{$hash}'"; try { $this->db->deleteData($query); } catch (\DatabaseException $e) { $this->handleDbException($e); } }