public function deletePolicies($roleId)
    {
        $loadedRole = $this->roleService->loadRole($roleId);

        foreach ($loadedRole->getPolicies() as $policy) {
            $this->roleService->deletePolicy($policy);
        }

        return new Values\NoContent();
    }
public function deletePolicies($roleId)
    {
        $loadedRole = $this->roleService->loadRole($roleId);

        foreach ($loadedRole->getPolicies() as $policy) {
            $this->roleService->deletePolicy($policy);
        }

        return new Values\NoContent();
    }
public function deletePolicies ( $ roleId ) { $ loadedRole = $ this -> roleService -> loadRole ( $ roleId ) ; foreach ( $ loadedRole -> getPolicies ( ) as $ policy ) { $ this -> roleService -> deletePolicy ( $ policy ) ; } return new Values \ NoContent ( ) ; }
Deletes all policies from a role.

@param $roleId

@return \eZ\Publish\Core\REST\Server\Values\NoContent
Deletes all policies from a role .