
    J                     ,   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  \R                  " \R                  R                  \R                  R                   \R                  R"                  5       " S	 S
\R$                  5      5       rg)zCommand to delete a folder.    )absolute_import)division)unicode_literals)folders)base)flags)logc                   .    \ rS rSrSr\S 5       rS rSrg)Delete   a|  Delete a folder.

Delete a folder, given a valid folder ID.

This command can fail for the following reasons:
    * There is no folder with the given ID.
    * The active account does not have permission to delete the given folder.
    * The folder to be deleted is not empty.

## EXAMPLES

The following command deletes a folder with the ID `123456789`:

  $ {command} 123456789
c                 N    [         R                  " S5      R                  U 5        g )Nzyou want to delete.)r   FolderIdArgAddToParser)parsers    .lib/surface/resource_manager/folders/delete.pyArgsDelete.Args.   s    	+,88@    c                     [         R                  " 5       n[         R                  " 5       nUR                  UR	                  UR
                  S95      n[        R                  " U5        g )N)	foldersId)r   FoldersServiceFoldersMessagesr   (CloudresourcemanagerFoldersDeleteRequestidr	   DeletedResource)selfargsservicemessagesresults        r   Run
Delete.Run2   sP    $$&G&&(H^^99DGG9LNFr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r!   __static_attributes__r#   r   r   r   r      s"      A A r   r   N)r(   
__future__r   r   r   'googlecloudsdk.api_lib.resource_managerr   googlecloudsdk.callioper   +googlecloudsdk.command_lib.resource_managerr   googlecloudsdk.corer	   ReleaseTracksReleaseTrackALPHABETAGADeleteCommandr   r#   r   r   <module>r6      sv    " &  ' ; ( = # D%%++T->->-C-C%%((* T  * r   