:doc:`EFS <../../efs>` / Client / delete_file_system_policy

*************************
delete_file_system_policy
*************************



.. py:method:: EFS.Client.delete_file_system_policy(**kwargs)

  

  Deletes the ``FileSystemPolicy`` for the specified file system. The default ``FileSystemPolicy`` goes into effect once the existing policy is deleted. For more information about the default file system policy, see `Using Resource-based Policies with EFS <https://docs.aws.amazon.com/efs/latest/ug/res-based-policies-efs.html>`__.

   

  This operation requires permissions for the ``elasticfilesystem:DeleteFileSystemPolicy`` action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteFileSystemPolicy>`_  


  **Request Syntax**
  ::

    response = client.delete_file_system_policy(
        FileSystemId='string'
    )
    
  :type FileSystemId: string
  :param FileSystemId: **[REQUIRED]** 

    Specifies the EFS file system for which to delete the ``FileSystemPolicy``.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`EFS.Client.exceptions.BadRequest`

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

  
  *   :py:class:`EFS.Client.exceptions.FileSystemNotFound`

  
  *   :py:class:`EFS.Client.exceptions.IncorrectFileSystemLifeCycleState`

  