Amazon API Gateway REST API Reference

restapi:delete

Deletes the specified API.

HTTP Request

DELETE /restapis/<restapi_id>

Remarks

Example

Request

The following example request deletes the API identified by the

DELETE /restapis/wklpc8beyl HTTP/1.1
Content-Type: application/json
Host: apigateway.us-east-1.amazonaws.com
X-Amz-Date: 20160601T195012Z
Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160601/us-east-1/apigateway/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature={sig4_hash}
Response

The successful response returns 202 Accepted with an empty payload.

See Also

AWS CLI