Delete a fleet (AWS CLI) - AWS IoT FleetWise

Delete a fleet (AWS CLI)

AWS IoT FleetWise is in preview release and is subject to change. We recommend that you use the service only with test data, and not in production environments.

While AWS IoT FleetWise is in preview, you must download the preview AWS SDK and AWS CLI to use the API operations for this service. These API operations aren't available in the public AWS SDK or AWS CLI. For more information, see Preview AWS CLI and AWS SDKs.

You can use the DeleteFleet API operation to delete a fleet. The following example uses AWS CLI.

Important

Before you delete a fleet, make sure it has no associated vehicles. For instructions on how to disassociate a vehicle from a fleet, see Disassociate a vehicle.

To delete a fleet, run the following command.

Replace fleet-id with the ID of the fleet that you're deleting.

aws iotfleetwise delete-fleet --fleet-id fleet-id