Delete a fleet (AWS CLI) - AWS IoT FleetWise

Delete a fleet (AWS CLI)

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 from a fleet (AWS CLI).

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