Deleting objects

You must use the local name (id) again to delete your existing data.

Dry run:

Our delete API has the option to perform a dryRun. This dry run reports back to what statements would be deleted and if the delete operation is safe.

Incoming links:

Deleting an object with incoming links is an unsafe operation. To perform an unsafe deletion, you must add the query parameters ?dryRun=false and force=true.

Example:

We have an event that has an organizer. Deleting the event would be considered safe. However, deleting the organizer would be unsafe since the Event would now link to an entity that no longer exists.

Example call with internal identifier

curl --location --request DELETE 'https://proxy.opendatagermany.io/api/ts/v1/kg/things/5eb42928-013d-46f6-a85b-efd3e5a3ae0d?dryRun=false' \
--header 'Content-Type: application/ld+json' \
--header 'x-api-key: <APIKEY>'

Example call with an external identifier

curl --location --request DELETE 'https://proxy.opendatagermany.io/api/ts/v1/kg/things/5eb42928-013d-46f6-a85b-efd3e5a3ae0d?dryRun=false&ns=https://company.com/entity/' \
--header 'Content-Type: application/ld+json' \
--header 'x-api-key: <APIKEY>'