public function emptyTrash()
{
if ($this->repository->hasAccess('content', 'cleantrash') !== true) {
throw new UnauthorizedException('content', 'cleantrash');
}
$this->repository->beginTransaction();
try {
// Persistence layer takes care of deleting content objects
$this->persistenceHandler->trashHandler()->emptyTrash();
$this->repository->commit();
} catch (Exception $e) {
$this->repository->rollback();
throw $e;
}
}