private boolean applyTrackDelete(JsonElement changeInfo) {
            String trackName = changeInfo.getAsString();

            Track track = this.plugin.getStorage().loadTrack(trackName).join().orElse(null);
            if (track == null) {
                return false;
            }

            if (ArgumentPermissions.checkModifyPerms(this.plugin, this.sender, CommandPermission.APPLY_EDITS, track)) {
                Message.COMMAND_NO_PERMISSION.send(this.sender);
                return false;
            }

            try {
                this.plugin.getStorage().deleteTrack(track, DeletionCause.WEB_EDITOR).get();
            } catch (Exception e) {
                e.printStackTrace();
                Message.DELETE_ERROR.send(this.sender, Component.text(track.getName()));
                return true;
            }

            Message.DELETE_SUCCESS.send(this.sender, Component.text(trackName));

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

            if (this.session != null) {
                this.session.excludeDeletedTrack(track);
            }

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