Disassociate an AWS IoT FleetWise vehicle from a fleet - AWS IoT FleetWise

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-id with the ID of the fleet.

  • Replace vehicle-name with the ID of the vehicle.

aws iotfleetwise disassociate-vehicle-fleet --fleet-id fleet-id --vehicle-name vehicle-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.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "kms:GenerateDataKey*", "kms:Decrypt" ], "Resource": [ "arn:aws:kms:KMS_KEY_REGION:KMS_KEY_ACCOUNT_ID:key/KMS_KEY_ID" ] }, ] }