delete
Description
Deletes a file or directory from the system. There is no confirmation during deletion, so use with caution.
Parameters
Table 3. Parameters
| Attribute | Type | Description | Required | 
|---|---|---|---|
| file | string | The file to delete. | false | 
| dir | string | The folder to delete. Deletes folders recursively! | false | 
| verbose | boolean | If true, will print the name of each file deleted. Default is false. | false | 
| if | bool | If true, the task will be executed, otherwise it will be skipped. The default is true. | False | 
| unless | bool | The opposite of if. If false, the task will be executed, otherwise it will be skipped. The default is false. | False |