Skip to content
Docs

Delete Resource

Required
DEL/v1/installations/{installationId}/resources/{resourceId}
Uninstalls and de-provisions a Resource
Edgenivo calls this endpoint when a customer deletes a resource. Deprovision it and clean up any associated data on your side. Edgenivo does not call this endpoint during installation uninstall. Your Delete Installation handler handles resource cleanup when removing an installation.
/v1/installations/{installationId}/resources/{resourceId}
const response = await fetch('/v1/installations/installationId/resources/resourceId', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
Response
{}
Errors
{
"error": {
"code": "forbidden",
"message": "string",
"user": {
"message": "string",
"url": "https://example.com"
}
}
}
AuthorizationUser Authentication

Default authentication mechanism

AuthorizationSystem Authentication

Default authentication mechanism

installationIdstringRequired
resourceIdstringRequired
X-Edgenivo-AuthstringOptional
The auth style used in the request (system, user, etc)
Idempotency-KeystringOptional
A unique key to identify a request across multiple retries
204Resource deleted successfully
403Operation failed because the authentication is not allowed to perform this operation
errorobjectRequired
409Operation failed because of a conflict with the current state of the resource
errorobjectRequired