Endpoint

/v1/tree-delete/jobs/

GET

Get status of all directory-tree deletion jobs.

Parameters

This resource has no parameters.

Response

Codes

Code Description
200 Return value on success

Schema

{
  "description": "tree_delete_jobs_response",
  "type": "object",
  "properties": {
    "jobs": {
      "type": "array",
      "items": {
        "description": "jobs",
        "type": "object",
        "properties": {
          "id": {
            "description": "The ID of the directory being deleted.",
            "type": "string"
          },
          "create_time": {
            "description": "The time the job was created. It may not have started at that time if the system was processing other jobs.",
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "IN_PLACE",
              "PORTAL_DELETION",
              "PORTAL_EVICTION"
            ],
            "description": "The tree delete mode this job is running in.:\n * `IN_PLACE` - TREE_DELETE_IN_PLACE,\n * `PORTAL_DELETION` - TREE_DELETE_PORTAL_DELETION,\n * `PORTAL_EVICTION` - TREE_DELETE_PORTAL_EVICTION"
          },
          "initial_path": {
            "description": "The path of the directory at the time the job was started.",
            "type": "string"
          },
          "initial_capacity": {
            "description": "Initial bytes (data and metadata) used by the tree being deleted.",
            "type": "string"
          },
          "initial_directories": {
            "description": "Initial number of directories in the tree being deleted.",
            "type": "string"
          },
          "initial_files": {
            "description": "Initial number of non-directory files in the tree being deleted.",
            "type": "string"
          },
          "remaining_capacity": {
            "description": "Remaining bytes (data and metadata) used by the tree being deleted.",
            "type": "string"
          },
          "remaining_directories": {
            "description": "Remaining number of directories in the tree being deleted.",
            "type": "string"
          },
          "remaining_files": {
            "description": "Remaining number of non-directory files in the tree being deleted.",
            "type": "string"
          }
        }
      }
    }
  }
}

POST

Start unlinking this directory and all its contents.

Parameters

This resource has no parameters.

Request

Schema

{
  "description": "tree_delete_job_post",
  "type": "object",
  "properties": {
    "id": {
      "description": "The file ID or the absolute path to the file system object. File IDs can be found in the id field of responses of APIs that return file attributes. You must URL-encode the paths. The APIs & Tools page in the Qumulo Core Web UI URL-encodes the paths.",
      "type": "string"
    }
  }
}

Response

Codes

Code Description
202 Return value on success