@Override
		public void checkinCompleted(long dbCheckinId) {
			synchronized (fileSystem) {
				if (isVersioned) {
					endCheckin(dbCheckinId);
				}
				if (versionedDb == null || versionedDb.getCurrentVersion() == 0) {
					// remove item which was created during initial creation
					try {
						if (isVersioned) {
							checkoutMgr.endCheckout(dbCheckinId);
						}
						deleteContent(null);
						fileSystem.itemDeleted(getParentPath(), getName()); // de-allocates index entry
						fileSystem.deleteEmptyVersionedFolders(getParentPath());
					}
					catch (IOException e) {
						Msg.error(this, getName() + " versioning error", e);
					}
				}
			}
		}
<code>LocalVersionedDbListener</code> provides a listener 
which maintains checkout and history data in response to 
VersionedDatabase callbacks.
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/local/LocalDatabaseItem.java