Skip to content

Delete a subscription

DELETE /api/v1/subscription/{name}

DELETE /maas/api/v1/subscription/{name}

Deletes a MaaSSubscription resource by name. K8s calls: DELETE /k8s/v1/maassubscription/:name

Authorization

Parameters

Name In Type Required Description
name path string Yes

Name of the MaaSSubscription to delete

Responses

Status Description Response body
200 OK

Subscription deleted successfully

object

application/json

401 Unauthorized

Unauthorized

None
403 Forbidden

Forbidden. Insufficient permissions to delete subscription.

ErrorResponse

application/json

404 Not Found

Subscription not found

ErrorResponse

application/json

500 Internal Server Error

Internal Server Error

ErrorResponse

application/json

200 OK response body

Property Type Required Description
message string No

Success message

Example request

curl -X DELETE "/maas/api/v1/subscription/{name}" \
  -H "Authorization: Bearer $TOKEN"

Example response

200 OK, application/json

{
  "message": "MaaSSubscription 'premium-team-sub' deleted successfully"
}