@Override
    public void deletePermissions(ModeledAuthenticatedUser user,
            ModeledPermissions<? extends EntityModel> targetEntity,
            Collection<SystemPermission> permissions) throws GuacamoleException {

        // Only privileged users (such as system administrators) can delete
        // system permissions
        if (user.isPrivileged()) {

            // Do not allow users to remove their own admin powers
            if (user.getUser().getIdentifier().equals(targetEntity.getIdentifier()))
                throw new GuacamoleUnsupportedException("Removing your own administrative permissions is not allowed.");

            // Pull case sensitivity
            CaseSensitivity caseSensitivity = getCaseSensitivity();
            
            batchPermissionUpdates(permissions, permissionSubset -> {
                Collection<SystemPermissionModel> models = getModelInstances(
                        targetEntity, permissionSubset);
                systemPermissionMapper.delete(models, caseSensitivity);
            });

            return;
        }

        // User lacks permission to delete system permissions
        throw new GuacamoleSecurityException("Permission denied.");
        
    }
Provider for creating system permission sets.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/permission/SystemPermissionService.java