Disassociate an AWS IoT FleetWise vehicle from a fleet
You can use the DisassociateVehicleFleet API operation to disassociate a vehicle from a fleet. The following example uses AWS CLI.
To disassociate a vehicle with a fleet, run the following command.
-
Replace
fleet-idwith the ID of the fleet. -
Replace
vehicle-namewith the ID of the vehicle.
aws iotfleetwise disassociate-vehicle-fleet --fleet-idfleet-id--vehicle-namevehicle-name
If you enabled encryption using a customer managed AWS KMS key, include the following policy statement so that your role can invoke the DisassociateVehicleFleet API operation.