:doc:`IoT <../../iot>` / Client / delete_fleet_metric

*******************
delete_fleet_metric
*******************



.. py:method:: IoT.Client.delete_fleet_metric(**kwargs)

  

  Deletes the specified fleet metric. Returns successfully with no error if the deletion is successful or you specify a fleet metric that doesn't exist.

   

  Requires permission to access the `DeleteFleetMetric <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/DeleteFleetMetric>`_  


  **Request Syntax**
  ::

    response = client.delete_fleet_metric(
        metricName='string',
        expectedVersion=123
    )
    
  :type metricName: string
  :param metricName: **[REQUIRED]** 

    The name of the fleet metric to delete.

    

  
  :type expectedVersion: integer
  :param expectedVersion: 

    The expected version of the fleet metric to delete.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoT.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`IoT.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoT.Client.exceptions.VersionConflictException`

  