IoTFleetWise / Client / delete_fleet

delete_fleet#

IoTFleetWise.Client.delete_fleet(**kwargs)#

Deletes a fleet. Before you delete a fleet, all vehicles must be dissociated from the fleet. For more information, see Delete a fleet (AWS CLI) in the Amazon Web Services IoT FleetWise Developer Guide.

Note

If the fleet is successfully deleted, Amazon Web Services IoT FleetWise sends back an HTTP 200 response with an empty body.

See also: AWS API Documentation

Request Syntax

response = client.delete_fleet(
    fleetId='string'
)
Parameters:

fleetId (string) –

[REQUIRED]

The ID of the fleet to delete.

Return type:

dict

Returns:

Response Syntax

{
    'id': 'string',
    'arn': 'string'
}

Response Structure

  • (dict) –

    • id (string) –

      The ID of the deleted fleet.

    • arn (string) –

      The Amazon Resource Name (ARN) of the deleted fleet.

Exceptions

  • IoTFleetWise.Client.exceptions.InternalServerException

  • IoTFleetWise.Client.exceptions.ThrottlingException

  • IoTFleetWise.Client.exceptions.ValidationException

  • IoTFleetWise.Client.exceptions.AccessDeniedException