public void deleteDirectory(@Nonnull Workspace workspace,
	                            @Nonnull WorkspaceResource resource,
	                            @Nonnull FileBundle bundle,
	                            @Nonnull String directoryName) {
		// TODO: Ask user if they are sure
		//  - Use config to check if "are you sure" prompts should be bypassed
		boolean isRootDirectory = directoryName.isEmpty();
		String directoryNamePrefix = directoryName + "/";
		for (FileInfo value : bundle.valuesAsCopy()) {
			String path = value.getName();
			if (isRootDirectory) {
				// Source is in the root directory, and the current file is also in the root directory.
				if (path.indexOf('/') == -1) {
					bundle.remove(path);
				}
			} else {
				// Source is in a directory, and the current file is in the same directory.
				if (path.startsWith(directoryNamePrefix)) {
					bundle.remove(path);
				}
			}
		}
	}
Prompts the user <i>(if configured, otherwise prompt is skipped)</i> to delete the directory.

@param workspace
		Containing workspace.
@param resource
		Containing resource.
@param bundle
		Containing bundle.
@param directoryName
		Name of directory to delete.
recaf-ui/src/main/java/software/coley/recaf/services/navigation/Actions.java