@Override
	public void run(TaskMonitor monitor) {

		// Check all files directly given to this task
		if (!preprocessStartFilesAndFolders(monitor)) {
			return;
		}

		// If there are problems, ask the user what to do
		if (!failPreprocessReadOnly.isEmpty()) {
			int option = OptionDialog.showOptionDialog(parentComponent, "Delete Read-only Files?",
				"<html>There were " + failPreprocessReadOnly.size() +
					" read-only files found in the requested set of files.  Override the read-only status and delete?",
				"Delete Read-only Files", "Continue and Skip Read-only Files",
				OptionDialog.QUESTION_MESSAGE);
			switch (option) {
				case OptionDialog.OPTION_ONE:// Delete read-only files
					for (DomainFile f : failPreprocessReadOnly) {
						filesToDelete.put(f, null);
					}
					readOnlyOverride.addAll(failPreprocessReadOnly);
					failPreprocessReadOnly.clear();
					break;
				case OptionDialog.OPTION_TWO:// Continue and skip
					// nada
					break;
				case OptionDialog.CANCEL_OPTION:
					// stop delete task
					return;
			}
		}
		if (!failPreprocessCheckedOut.isEmpty()) {
			if (!confirmUserSkipFailedPreprocessedFiles()) {
				return;
			}
		}

		if (filesToDelete.isEmpty() && foldersToDelete.isEmpty()) {
			Msg.showInfo(this, parentComponent, "Delete finished", "Nothing to do, finished.");
			return;
		}

		if (!confirmDeleteFiles()) {
			return;
		}

		try {
			deleteFiles(monitor);
			deleteFolders(monitor);
		}
		catch (CancelledException ce) {
			Msg.info(this, "Canceled delete");
		}

		if (hasErrors()) {
			showErrorSummary(monitor.isCancelled());
		}
	}
Creates a new task to delete the specified files and folders.

@param files - the {@link DomainFile files} the user requested to be deleted, or null.
@param folders - the {@link DomainFolder folders} the user requested to be deleted, or null.
@param parentComponent - parent java awt component that will be parent of the message dialogs and such.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/projectdata/actions/ProjectDataDeleteTask.java