:doc:`RolePolicy <index>` / Action / delete

******
delete
******



.. py:method:: IAM.RolePolicy.delete()

  

  Deletes the specified inline policy that is embedded in the specified IAM role.

   

  A role can also have managed policies attached to it. To detach a managed policy from a role, use `DetachRolePolicy <https://docs.aws.amazon.com/IAM/latest/APIReference/API_DetachRolePolicy.html>`__. For more information about policies, refer to `Managed policies and inline policies <https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html>`__ in the *IAM User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/DeleteRolePolicy>`_  


  **Request Syntax**
  ::

    response = role_policy.delete()
    
    
  
  :returns: None