Delete a vehicle
You can use the AWS IoT FleetWise console or API to delete vehicles.
Important
After a vehicle is deleted, AWS IoT FleetWise automatically removes the vehicle from the associated fleets and campaigns. For more information, see Create and manage fleets and Collect and transfer data with campaigns. However, the vehicle still exists as a thing or is still associated with a thing in AWS IoT Core. For instructions on deleting a thing, see Delete a thing in the AWS IoT Core Developer Guide.
Delete a vehicle (console)
You can use the AWS IoT FleetWise console to delete a vehicle.
To delete a vehicle
-
Navigate to the AWS IoT FleetWise console
. -
On the navigation pane, choose Vehicles.
-
On the Vehicles page, select the button next to the vehicle you want to delete.
-
Choose Delete.
-
In Delete
vehicle-name
, enter the name of the vehicle, and then choose Delete.
Delete a vehicle (AWS CLI)
You can use the DeleteVehicle API operation to delete a vehicle. The following example uses AWS CLI.
To delete a vehicle, run the following command.
Replace vehicle-name
with the ID of the vehicle that you
want to delete.
aws iotfleetwise delete-vehicle --vehicle-name
vehicle-name