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

***********************
delete_security_profile
***********************



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

  

  Deletes a Device Defender security profile.

   

  Requires permission to access the `DeleteSecurityProfile <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/DeleteSecurityProfile>`_  


  **Request Syntax**
  ::

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

    The name of the security profile to be deleted.

    

  
  :type expectedVersion: integer
  :param expectedVersion: 

    The expected version of the security profile. A new version is generated whenever the security profile is updated. If you specify a value that is different from the actual version, a ``VersionConflictException`` is thrown.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

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

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

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

  