Deleting Assets

You can delete one or multiple assets via the following requests.

If you delete a dataset that has DSEs linked to it, those DSEs will be removed as well.

Delete one asset

const url = "https://{your_tenant}.dscribedata.com/api/assets/:id";
const authToken = "yholmghj8§hbfg...";

fetch(url, {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${authToken}`,
    "Content-Type": "application/json",
  },
});

Deleting multiple assets

const url = "https://{your_tenant}.dscribedata.com/api/assets";
const authToken = "yholmghj8§hbfg...";

fetch(url, {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${authToken}`,
    "Content-Type": "application/json",
  },
  body: JSON.striningify({
    ids: ["123", "456"],
  }),
});

Last updated