@Override
	public void removeBookmarks(String type) {
		lock.acquire();
		try {

			try {
				BookmarkTypeDB bmt = (BookmarkTypeDB) typesByName.get(type);
				if (bmt.hasBookmarks()) {
					int typeId = bmt.getTypeId();
					bookmarkAdapter.deleteType(typeId);
					bookmarkTypeAdapter.deleteRecord(typeId);
					bmt.setHasBookmarks(false);
					program.setObjChanged(ProgramEvent.BOOKMARK_TYPE_REMOVED, bmt, null, null);
				}
			}
			catch (IOException e) {
				dbError(e);
			}
		}
		finally {
			lock.release();
		}
	}
Update stored bookmark and fire program change event for a bookmark which has
had its category or comment changed.  All other fields are immutable.
@param bm bookmark
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/bookmark/BookmarkDBManager.java