Delete a vehicle (AWS CLI) - AWS IoT FleetWise

Delete a vehicle (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 DeleteVehicle API operation to delete a vehicle. The following example uses AWS CLI.

Important

After a vehicle is deleted. AWS IoT FleetWise automatically remove the vehicle from the associated fleets and campaigns. For more information, see Create and manage fleets and Collect and transfer data with campaigns.

To delete a vehicle, run the following command.

Replace vehicle-ID with the ID of the vehicle you want to delete.

aws iotfleetwise delete-vehicle --vehicle-id vehicle-ID
Note

This command doesn't produce output.