:doc:`MediaStore <../../mediastore>` / Client / delete_cors_policy

******************
delete_cors_policy
******************



.. py:method:: MediaStore.Client.delete_cors_policy(**kwargs)

  

  Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.

   

  To use this operation, you must have permission to perform the ``MediaStore:DeleteCorsPolicy`` action. The container owner has this permission by default and can grant this permission to others.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteCorsPolicy>`_  


  **Request Syntax**
  ::

    response = client.delete_cors_policy(
        ContainerName='string'
    )
    
  :type ContainerName: string
  :param ContainerName: **[REQUIRED]** 

    The name of the container to remove the policy from.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`MediaStore.Client.exceptions.ContainerInUseException`

  
  *   :py:class:`MediaStore.Client.exceptions.ContainerNotFoundException`

  
  *   :py:class:`MediaStore.Client.exceptions.CorsPolicyNotFoundException`

  
  *   :py:class:`MediaStore.Client.exceptions.InternalServerError`

  