Skip to main content
DELETE
/
api
/
apis
/
oas
/
{apiId}
Delete OAS API.
curl --request DELETE \
  --url https://{tenant}/api/apis/oas/{apiId} \
  --header 'Authorization: Bearer <token>'
{
  "Message": "API deleted.",
  "Meta": null,
  "Status": "OK"
}

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Path Parameters

apiId
string
required

ID of the API you want to delete.

Query Parameters

purge
boolean
default:false

When set to true and the API is a base API with child versions, all child API versions will be deleted along with the base API. If false or not provided, child versions will remain as independent APIs.

Response

Deleted successfully.

ID
string
Message
string
Meta
any
Status
string