cURL
curl --request DELETE \ --url https://{tenant}/tyk/apis/oas/{apiID} \ --header 'X-Tyk-Authorization: <api-key>'
{ "action": "deleted", "key": "1bd5c61b0e694082902cf15ddcc9e6a7", "status": "ok" }
Deleting an API definition will remove the file from the file store, the API definition will not be unloaded, a separate reload request will need to be made to disable the API endpoint.
Was this page helpful?