The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Insights Hub and Industrial IoT

Insights Hub drives smart manufacturing through the industrial Internet of Things. Gain actionable insights with asset and operational data and improve your processes.

Delete Multiple Objects¶

To delete multiple objects from the specified path, create an asynchronous jobs. Jobs which are completed with or without errors will be deleted periodically. Once the data is deleted, it cannot be recovered. Create asynchronous job to delete multiple objects for the specified paths. Jobs which are completed with or without errors would be deleted periodically. Once the data is deleted, it cannot be recovered.

Provide delete permission¶

The tenantAdmin can access this API and provide delete permission on folder or path, on the subtenants folder and on the root folder, except for the Time Series Import (TSI) folder.

POST /deleteObjectsJobs

Content-Type: application/json

Request Example:

{
    "objects": [
    {
    "path": "/IntegrationTest/IntegrationTestFile1"
    },
    {
    "path": "/IntegrationTest/IntegrationTestFile2"
    }
  ]
}

Response Example:

{
    "id": "63527e00-f4f6-4566-82bd-2f3ec81450fc",
    "status": "IN_PROGRESS",
    "progressDetails": {
        "totalObjects": 2,
        "inProgressObjects": 0,
        "deletedObjects": 0,
        "failedObjects": 0
    }
}

Get a list of deleted objects for the given ID¶

GET /deleteObjectsJobs/{id}

Content-Type: application/json

Response Example:

{
    "id": "63527e00-f4f6-4566-82bd-2f3ec81450fc",
    "status": "COMPLETED",
    "progressDetails": {
        "totalObjects": 2,
        "inProgressObjects": 0,
        "deletedObjects": 2,
        "failedObjects": 0
    }
}

Get list of all deleted objects¶

GET /deleteObjectsJobs/

Content-Type: application/json

Response Example:

{
    "id": "63527e00-f4f6-4566-82bd-2f3ec81450fc",
    "status": "COMPLETED",
    "progressDetails": {
        "totalObjects": 2,
        "inProgressObjects": 0,
        "deletedObjects": 2,
        "failedObjects": 0
    }
    },
    {
    "id": "63527e00-f4f6-5677-82bd-2f3ec81458gb",
    "status": "COMPLETED",
    "progressDetails": {
        "totalObjects": 2,
        "inProgressObjects": 0,
        "deletedObjects": 2,
        "failedObjects": 0
    }
}

Get list of error details of the deleted objects¶

GET /deleteObjectsJobs/{id}/errorDetails

Content-Type: application/json

Response Example:

{
  "id": "3b8aded7-d19c-4dff-af58-4a2840c3fe55",
  "subtenantId": "204a896c-a23a-11e9-a2a3-2a2ae2dbcce4",
  "progressDetails": {
    "totalObjects": 0,
    "inProgressObjects": 0,
    "deletedObjects": 0,
    "failedObjects": 0
  },
  "status": "COMPLETED",
  "objects": [
    {
      "path": "string",
      "status": "FAILED"
    }
  ]
}