API Reference > Part II: Authenticate using JWT > Manage data collections > Delete data collections
  

Delete data collections

Use a REST API to delete a data collection in Data Marketplace.

Endpoint and method

The following table describes the connection properties for the API:
Property
Description
Endpoint
/api/v2/data-collections/<dataCollectionId>
<dataCollectionId>: Required. Enter the system-generated unique identifier of the data collection that you want to delete.
For more information about how you can use an API to get the system-generated unique identifier of a data collection, see Retrieve all data collections.
To get the system-generated unique identifier of a data collection from the Data Marketplace user interface, open the data collection. The data collection page's URL contains the unique identifier.
For example, in the URL https://{{CDMP_URL}}/datacollection/25158afc-3dfb-44ef-8f3e-cec1e171d0f1?dtn=&tab=summary, the unique identifier is 25158afc-3dfb-44ef-8f3e-cec1e171d0f1.
Method
DELETE
Note: If the data collection that you want to delete is linked to another collection, this link is removed when you delete the data collection. In this scenario, the other collection that is linked does not get deleted.
For more information about how you can call an API, see Authenticate using JWT.

Request

Note: The API has no payload.

Example request

The following example shows how you can use an API to delete a data collection:
https://{{CDMP_URL}}/api/v2/data-collections/2593524d-82f7-4dfd-bc6b-17088c046f9d

Response

When you invoke the API using a REST client, the client displays a response for the parameter values that you have entered.
If you see the following response code, it means that the data collection is successfully deleted:
204 OK code