Delete an artifact
DELETE
/api/v1/artifacts/{type}/{name}
const url = 'http://localhost:11044/api/v1/artifacts/example/example';const options = {method: 'DELETE', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”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
Responses
Section titled “Responses”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

