@Override
	public boolean applyTo(Program program) {

		BookmarkManager mgr = program.getBookmarkManager();

		if (bookmarks != null) {
			deleteBookmarks(mgr, bookmarks);
		}
		else if (addrSet != null) {
			if (type != null) {
				if (category != null) {
					deleteBookmarks(mgr, addrSet, type, category);
				}
				else {
					deleteBookmarks(mgr, addrSet, type);
				}
			}
			else {
				deleteBookmarks(mgr, addrSet);
			}
		}
		else {
			if (category != null) {
				deleteBookmarks(mgr, type, category);
			}
			else {
				deleteBookmarks(mgr, type);
			}
		}
		return true;
	}
The name of the edit action.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/bookmark/BookmarkDeleteCmd.java