function(string $id)
{
if (!Str::isUid($id)) {
throw new \Exception(_("The id must be a uuid"));
}
$idPerm = $this->perm->optionToPermission($id);
if ($this->opt->remove($id)) {
if ($idPerm) {
$this->opt->remove($idPerm);
}
return true;
}
return false;
}