public function deleteCorruptedUrlAliases(): int
    {
        if ($this->repository->getPermissionResolver()->hasAccess('content', 'urltranslator') !== true) {
            throw new UnauthorizedException('content', 'urltranslator');
        }

        return $this->urlAliasHandler->deleteCorruptedUrlAliases();
    }
public function deleteCorruptedUrlAliases(): int
    {
        if ($this->repository->getPermissionResolver()->hasAccess('content', 'urltranslator') !== true) {
            throw new UnauthorizedException('content', 'urltranslator');
        }

        return $this->urlAliasHandler->deleteCorruptedUrlAliases();
    }
public function deleteCorruptedUrlAliases ( ) : int { if ( $ this -> repository -> getPermissionResolver ( ) -> hasAccess ( 'content' , 'urltranslator' ) !== true ) { throw new UnauthorizedException ( 'content' , 'urltranslator' ) ; } return $ this -> urlAliasHandler -> deleteCorruptedUrlAliases ( ) ; }
Delete global, system or custom URL alias pointing to non-existent Locations.

@return int Number of removed URL aliases

@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException
@throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException
Delete global system or custom URL alias pointing to non - existent Locations .