Updated on 2025-07-03 GMT+08:00

Deleting a File

This action aims to delete a file or folder from a host in a specified environment. The following table shows the configuration.

Table 1 Parameters

Parameter

Description

Action Name

Customized action name displayed in the deployment actions Enter 1 to 128 characters. Do not start or end with a space. Use letters, digits, spaces, and these special characters: -_,;:./()

Environment

Select a host cluster as the deployment object.

File Path

Path of the file or folder to delete.

NOTE:

If a file path is specified, the file is deleted. If a folder path is specified, the folder and all files in the folder are deleted.

Action Control

You can configure whether to enable this setting.

  • Keep running on failure: whether to continue the task even if this action fails.
  • Execute this action with the sudo permission: whether to use the sudo permission to deploy this action.

If you encounter any problem during deployment, see Solutions to Common Problems.