Delete multiple files and folders

This call lets you perform perform an asynchronous bulk deletion of files or folders. Deleting folders which aren't empty is allowed.

📘

If you are using Seven Bridges Platform EU, please use the following endpoint: https://eu-api.sbgenomics.com/v2/async/files/delete

Example request body

{
  "items": [
    {
      "file": "5c6d3c30e4b038363238932f"
    },
    {
      "file": "5c6d3c30e4b038363238932e"
     },
    {
      "file": "5c6d3c30e4b0383632389331"
    }
  ]
}

Response

See a list of Seven Bridges Platform-specific response codes that may be contained in the body of the response.

Response body

KeyData type of valueDescription of value
filestringID of this delete job.
resultstringThe result of the job if available at the time the call is made. Use the details of a deletion job to see more information.
typestringThe type of job, which is DELETE in the case of deleting files.
statestringThe state is SUBMITTED at the time of making this call.
failed_filesstringThe number of failed files if that information is available at the time of the call. You can get details of a deletion job with a dedicated call.
completed_filesstringThe number of completed files if that information is available at the time of the call. You can get details of a deletion job with a dedicated call.
total_filesstringThe number of failed files if that information is available at the time of the call. You can get the details of a deletion job with a dedicated call.
Language