@Override
	public boolean applyTo(Program program) {

		// save off the function signature
		//   get the body, comment, stack, return type
		Listing listing = program.getListing();
		Function func = listing.getFunctionAt(entry);
		if (func == null) {
			if (ignoreMissingFunction) {
				return true;		// consider it a success
			}
			return false;
		}

		if (!entry.isExternalAddress()) {
			func.promoteLocalUserLabelsToGlobal();
		}

		listing.removeFunction(entry);

		return true;
	}
Constructs a new command for deleting a function.
@param entry entry point address for the function to be deleted.
Ghidra/Features/Base/src/main/java/ghidra/app/cmd/function/DeleteFunctionCmd.java