CmdID / aws / aws apigateway
aws apigateway delete-resource
Deletes a Resource resource. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To delete a resource in an API
The following delete-resource example deletes a resource in an API.
aws apigateway delete-resource --rest-api-id 1234123412 --resource-id a1b2c3Identify--rest-api-idThe string identifier of the associated RestApi.--resource-idThe identifier of the Resource resource.This command produces no output.
For more information, see Develop REST APIs in API Gateway in the Amazon API Gateway Developer Guide.
Options
--resource-idThe identifier of the Resource resource.--rest-api-idThe string identifier of the associated RestApi.