delete_files
Delete on or more files
Input fields
FileOwnerInput!)
The owner of the files to delete.
[ID!]!)
Sentera IDs of the files to delete. Limited to a maximum of 1000 IDs.
Return fields
UpsertActionType!)
Determines if it was a create or update.
String!)
The current content hash for this item.
ISO8601DateTime!)
The timestamp of when the item was created in the system.
User!)
The user who created this item.
String)
The name of the file on disk that is created when downloading this file using the download url.
FileOwner!)
The owner of this file.
String!)
The type of file.
String)
The name of the file within the client file system.
String)
The path of the file within the client file system.
String)
The s3 location where the file data is stored.
ID!)
A system-generated key identifying a specific instance of a file.
String)
The size of the file in bytes (represented as a string to represent files over 2GB).
ISO8601DateTime!)
The timestamp of when the item was last updated in the system.
User)
The user who last updated this item.
String)
A url for downloading the image (blank if the physical image file does not exist). Valid for the next 60 minutes.
Int)
The version of the file.
Examples
Delete Files
Deletes files in a given file owner based off of their IDs
Try this example in GraphiQLmutation DeleteFiles{
delete_files(
owner: {
owner_type: SURVEY
sentera_id: "58ag1kg_CO_c9hoAcme123_AD_u1qxybut_ac5d85f7_190711_163140"
}
sentera_ids: [
"o2axj5w_FI_c9hoAcme123_AD_stag_de3e709_201021_215530"
]
) {
sentera_id
}
}
{
"data": {
"delete_files": [
{
"sentera_id": "o2axj5w_FI_c9hoAcme123_AD_stag_de3e709_201021_215530"
}
]
}
}