@Override
	public boolean deleteScript(ResourceFile sourceFile) {
		try {
			Bundle osgiBundle = getBundleForSource(sourceFile).getOSGiBundle();
			if (osgiBundle != null) {
				bundleHost.deactivateSynchronously(osgiBundle);
			}
		}
		catch (GhidraBundleException e) {
			Msg.error(this, "Error while deactivating bundle for delete", e);
			return false;
		}
		return super.deleteScript(sourceFile);
	}
Get the {@link GhidraSourceBundle} containing the given source file, assuming it already
exists.

@param sourceFile the source file
@return the bundle
Ghidra/Features/Base/src/main/java/ghidra/app/script/JavaScriptProvider.java