private boolean applyGroupDelete(JsonElement changeInfo) {
            String groupName = changeInfo.getAsString();

            if (groupName.equalsIgnoreCase(GroupManager.DEFAULT_GROUP_NAME)) {
                Message.DELETE_GROUP_ERROR_DEFAULT.send(this.sender);
                return true;
            }

            Group group = this.plugin.getStorage().loadGroup(groupName).join().orElse(null);
            if (group == null) {
                return false;
            }

            if (ArgumentPermissions.checkModifyPerms(this.plugin, this.sender, CommandPermission.APPLY_EDITS, group) || ArgumentPermissions.checkGroup(this.plugin, this.sender, group, ImmutableContextSetImpl.EMPTY)) {
                Message.COMMAND_NO_PERMISSION.send(this.sender);
                return false;
            }

            try {
                this.plugin.getStorage().deleteGroup(group, DeletionCause.WEB_EDITOR).get();
            } catch (Exception e) {
                e.printStackTrace();
                Message.DELETE_ERROR.send(this.sender, group.getFormattedDisplayName());
                return true;
            }

            Message.DELETE_SUCCESS.send(this.sender, group.getFormattedDisplayName());

            LoggedAction.build().source(this.sender).target(group)
                    .description("webeditor", "delete")
                    .build().submit(this.plugin, this.sender);

            if (this.session != null) {
                this.session.excludeDeletedGroup(group);
            }

            return true;
        }
Represents the application of a given editor session on this platform.
common/src/main/java/me/lucko/luckperms/common/webeditor/WebEditorResponse.java