After a job is complete, you can delete the Temporal Data Object (TDO) and its assets from your organization's files to free up storage space or to comply with organizational policies. You can also delete only its assets so that the TDO can be reused for future jobs.
[Warn] When you delete TDO data, the data is permanently removed from aiWARE and will not be accessible through the Data Center utility, search, or any other method. You cannot revert this change.
Delete a TDO and all assets
You can remove a TDO and all its assets by using the deleteTDO mutation with the TDO id. The operation is processed immediately after the request and permanently deletes the TDO as well as its assets from the organization's account. Any subsequent requests against the TDO or assets will return an error.
Below is a sample request to delete a TDO with id 44512341:
mutation{
deleteTDO(id: "44512341")
{
id
message
}
}
Below is a sample response:
{
"data": {
"deleteTDO": {
"id": "44512341",
"message": "TemporalDataObject 44512341 was deleted."
}
}
}
Remove TDO content
To remove only the content associated with a TDO, while keeping the TDO and asset metadata, use the cleanupTDO mutation with the TDO id. You can specify the types of data you want to delete in the options parameter.
storage: Deletes the TDO's assets from storage, including the engine results. The asset metadata will remain until the TDO or container is deleted.searchIndex: Deletes all search index data. The TDO and its assets will no longer be accessible through search. engineResults: Deletes engine results stored on related task objects. The engine results that are stored as assets will remain unless storage is passed as a value in the request.
Below is a sample request to remove TDO content (storage, engineResults):
mutation {
cleanupTDO(id: "44512341", options: [storage, engineResults]) {
id
message
}
}
[Note] If you do not use the options parameter, then the request will remove the TDO's content from storage and the search index.
Below is a sample response:
{
"data": {
"cleanupTDO": {
"id": "44512341",
"message": "Data deleted from 44512341: storage,engineResults"
}
}
}