Tasks
Delete File
The Delete File task deletes a file from the Stubber file system.
For cases of extreme sensitivity, the delete_file
task can be used to remove a file completely from the Stubber file system.
Basic usage
Parameters
optional string
fileuuid The UUID of the file to be deleted.
optional array
fileuuids An array of UUIDs of the files to be deleted.
optional string
filename The name of the file to be deleted. This only works for files on the same stub where the task is executed.
optional array
filenames An array of filenames to be deleted. This only works for files on the same stub where the task is executed.
optional array
attachments An array of attachments to be deleted. This refers to the attachments of a stub or stubpost and can be referenced as:
~~stub.attachments
~~stubpost.attachments
This will delete all attachments of the stub or stubpost.
Result
Properties
fileuuid
integer
The UUID of the file that was deleted.