Tutorial: Delete a geofence collection - Amazon Location Service

Tutorial: Delete a geofence collection

You can delete a geofence collection from your AWS account using the Amazon Location console, the AWS CLI, or the Amazon Location APIs.

Console

To delete a geofence collection using the Amazon Location console

Warning

This operation deletes the resource permanently.

  1. Open the Amazon Location console at https://console.aws.amazon.com/location/.

  2. Choose Geofence collections from the left navigation pane.

  3. Under My geofence collection, select the target geofence collection.

  4. Choose Delete geofence collection.

API

Use the DeleteGeofenceCollection operation from the Amazon Location APIs.

The following example is an API request to delete the geofence collection ExampleCollection.

DELETE /geofencing/v0/collections/ExampleCollection

The following is an example response for DeleteGeofenceCollection:

HTTP/1.1 200
CLI

Use the delete-geofence-collection command.

The following example is an AWS CLI command to delete the geofence collection ExampleCollection.

aws location delete-geofence-collection \ --collection-name "ExampleCollection"