Skip to main content

Delete_asset

NameTypeDescription
asset_selectorenum                          
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.
assetobjectObject defining the parameters of an asset, including location, trim points, etc. [DESC]
locationobject*****
delete_folder_acknowledgementstringIf deleting a folder, you need to specify the exact name of the folder here.
ignore_errorsbooleanIf 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"
}
]
}
}
]
}
}