Delete an action
const url = 'http://localhost:11044/api/v1/actions/spec/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/actions/spec/example \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Deletes an action spec from the world’s config/actions directory, along with any sibling TypeScript file of the same name. Realm-shipped and platform actions cannot be deleted.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Name of the world action to delete, matched exactly: its config/actions/<name>.yml is removed, with any sibling <name>.ts. An action without that YAML in this world (realm-shipped or platform-defined) is refused with 400
Responses
Section titled “Responses”Action deleted
object
Action cannot be deleted
A refused action operation: not found, not editable, not deletable, or a compilation that failed
object
Why, written to be shown, naming the action
Always error
Action not found
A refused action operation: not found, not editable, not deletable, or a compilation that failed
object
Why, written to be shown, naming the action
Always error

