fbpx
DELETEhttps://api.spotinst.io/functions/function/{FUNCTION_ID}?accountId={ACCOUNT_ID}

Delete a function and all its versions.

Parameter Type Description
FUNCTION_ID * String

The function ID you want to delete.

Example: fun-12345
ACCOUNT_ID String

The account ID.

Example: act-12345
Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${TOKEN}"
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  }
}