/r/{repoId}/objectmanagement/datasets/{id}

DELETE
https://sample-api.d-velop.cloud
Deleting a dataset
You can delete a dataset that is no longer required from the repository by applying this request. A dataset can only be deleted if it is no longer assigned to any property and if it has not been predefined by the system (readOnly=true).
Parameters
repoId/string/required
The unique ID of the repository.
id/string/required
The unique ID of the dataset.
Responses
204
The dataset was deleted successfully.
No content
404
The dataset with the specified ID could not be determined.
Content
Media type: application/json
{
  "code": {
    "type": "integer",
    "format": "int32",
    "example": 240100
  },
  "reason": {
    "type": "string",
    "nullable": true,
    "example": "Reason why the request failed."
  }
}
Media type: application/hal+json
{
  "code": {
    "type": "integer",
    "format": "int32",
    "example": 240100
  },
  "reason": {
    "type": "string",
    "nullable": true,
    "example": "Reason why the request failed."
  }
}
Show operation

Language

const options = {method: 'DELETE', headers: {accept: 'application/json'}};

fetch('https://example.com/dmsconfig/r/REPOID/objectmanagement/datasets/ID', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));