delete_files

Delete on or more files

Input fields

owner (FileOwnerInput!)

The owner of the files to delete.

sentera_ids ([ID!]!)

Sentera IDs of the files to delete. Limited to a maximum of 1000 IDs.

Return fields

action (UpsertActionType!)

Determines if it was a create or update.

content_hash (String!)

The current content hash for this item.

created_at (ISO8601DateTime!)

The timestamp of when the item was created in the system.

created_by (User!)

The user who created this item.

download_filename (String)

The name of the file on disk that is created when downloading this file using the download url.

file_owner (FileOwner!)

The owner of this file.

file_type (String!)

The type of file.

filename (String)

The name of the file within the client file system.

path (String)

The path of the file within the client file system.

s3_uri (String)

The s3 location where the file data is stored.

sentera_id (ID!)

A system-generated key identifying a specific instance of a file.

size (String)

The size of the file in bytes (represented as a string to represent files over 2GB).

updated_at (ISO8601DateTime!)

The timestamp of when the item was last updated in the system.

updated_by (User)

The user who last updated this item.

url (String)

A url for downloading the image (blank if the physical image file does not exist). Valid for the next 60 minutes.

version (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 GraphiQL
mutation 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"
    }
  ]
  }
}