Skip to content

Delete an artifact

DELETE
/api/v1/artifacts/{type}/{name}
curl --request DELETE \
--url http://localhost:11044/api/v1/artifacts/example/example \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'

Type is one of the ArtifactType names (case-insensitive).

type
required
string

The artifact’s type, one of the ArtifactType names, case-insensitive. An unrecognised type is refused with 400

name
required
string

The artifact’s name, including its extension, unique within its type

Artifact deleted

Media type*/*

Confirmation that an artifact was deleted

object
name
required

The artifact’s name

string
status
required

Always deleted

string

Unknown type

Media type*/*

A refusal carrying only its reason

object
error
required

Why the request was refused, written to be shown

string

No such artifact