You can remotely delete files using the Delete file task. For example, you can remotely delete a file when responding to threats.
The Delete file task has the following limitations:
System Critical Objects (SCO) cannot be deleted. SCOs are files that the operating system and the Kaspersky Endpoint Security for Windows application require to be able to run.
You can configure the task for EDR Optimum in Web Console and Cloud Console. Task settings for EDR Expert are available only in Cloud Console.
To create a Delete file task:
In the main window of the Web Console, select Devices → Tasks.
The list of tasks opens.
Click the Add button.
The Task Wizard starts.
Configure the task settings:
In the Application drop-down list, select Kaspersky Endpoint Security for Windows (12.2).
In the Task type drop-down list, select Delete file.
In the Task name field, enter a brief description.
In the Select devices to which the task will be assigned block, select the task scope.
Select devices according to the selected task scope option. Click the Next button.
Enter the account credentials of the user whose rights you want to use to run the task. Click the Next button.
By default, Kaspersky Endpoint Security starts the task as the system user account (SYSTEM).
Finish the wizard by clicking the Finish button.
A new task will be displayed in the list of tasks.
Click the new task.
The task properties window opens.
Select the Application settings tab.
In the list of files, click Add.
The file adding wizard starts.
To add the file, you must enter the full path to the file, or both file hash and the path.
If the file is located on a network drive, enter the file path starting with \\, and not the drive letter. For example, \\server\shared_folder\file.exe. If the file path contains a network drive letter, you can get a File not found error.
In the task properties window, select the Schedule tab.
Configure the task schedule.
Wake-on-LAN is not available for this task. Make sure the computer is turned on to run the task.
Click the Save button.
Select the check box next to the task.
Click the Run button.
As a result, Kaspersky Endpoint Security deletes the file from the computer. If the file is locked by a different process, the task is displayed as Completed, but the file itself is deleted only after the computer is restarted. After restarting the computer, confirm that the file is deleted.
The Delete file task can finish with the Access denied error if you are trying to delete an executable file that is currently running. Create a terminate process task for the file and try again.