Amazon API Gateway REST API Reference

usageplan:delete

Deletes a specified usage plan.

HTTP Request

DELETE /usageplans/<usageplanId>

Remarks

You must have the Allow permission on the apigateway:DELETE action to delete a usage plan.

Example

Request
DELETE /usageplans/gk4w6q HTTP/1.1
Content-Type: application/json
Host: apigateway.ap-southeast-1.amazonaws.com
X-Amz-Date: 20160805T030809Z
Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20160805/ap-southeast-1/apigateway/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature={sigv4_hash}
Cache-Control: no-cache
Postman-Token: c93188f6-1c07-0f15-861d-dbf36f390edc

{ "name": "Plan_G", "description": "my plan", "quota": { "period": "DAY", "offset": 0, "limit": 500 }, "throttle": { "rateLimit": 100, "burstLimit": 200 } }

Response

The successful response returns a 202 Accepted response without a payload.

See Also

Create and Use Usage Plans