Delete_asset
Name | Type | Description |
---|---|---|
asset_selector | enum workflow_document config | Selecting the "workflow_document" will delete the outputs of the prior task. Selecting "config" allows you to specify explictly which assets you wish to delete. |
asset | object | Object defining the parameters of an asset, including location, trim points, etc. [DESC] |
location | object | ***** |
delete_folder_acknowledgement | string | If deleting a folder, you need to specify the exact name of the folder here. |
ignore_errors | boolean | If set to "true", then any errors while attempting to delete assets will not cause the task and job to fail. Examples of potential errors include files not present or insufficient permissions. |
Example delete_asset
{
"name": "Hybrik Delete Asset Example",
"payload": {
"elements": [
{
"uid": "source_file",
"kind": "source",
"payload": {
"kind": "asset_url",
"payload": {
"storage_provider": "s3",
"url": "s3://bucket_name/file_name.mov"
}
}
},
{
"uid": "delete_task",
"kind": "delete_asset",
"payload": {
"asset_selector": "workflow_document"
}
}
],
"connections": [
{
"from": [
{
"element": "source_file"
}
],
"to": {
"success": [
{
"element": "delete_task"
}
]
}
}
]
}
}