
                             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  SS	KJr  SS
KJr  SSKJr  SSKJr  \
R*                   " S S\
R,                  5      5       rg)zCommand to delete a project.    )absolute_import)division)unicode_literals)projects_api)smart_guardrails)base)flags)util)
completers)log)
console_ioc                   J    \ rS rSrSrS\R                  0r\S 5       r	S r
Srg)Delete    aR  Delete a project.

Deletes the project with the given project ID.

This command can fail for the following reasons:
* The project specified does not exist.
* The active account does not have IAM role `role/owner` or another IAM role
  with the `resourcemanager.projects.delete` permission for the given project.

See [Access control for projects using
IAM](https://cloud.google.com/resource-manager/docs/access-control-proj) for
more information.

## EXAMPLES

The following command deletes the project with the ID `example-foo-bar-1`:

  $ {command} example-foo-bar-1

## SEE ALSO

{see_also}
see_alsoc                 B   [         R                  " S5      R                  U5        U R                  5       [        R                  R
                  :w  a%  [         R                  " S5      R                  U5        UR                  R                  [        R                  5        g )Ndeletezproject deletion)r	   GetProjectIDNumberFlagAddToParserReleaseTrackr   GAGetRecommendFlagdisplay_infoAddCacheUpdaterr   ProjectCompleter)clsparsers     lib/surface/projects/delete.pyArgsDelete.Args<   sl    	  *66v>
T..111/0<<VD
''
(C(CD    c                    [         R                  " UR                  5      nU R                  5       [        R                  R
                  :w  ay  UR                  (       ah  [        R                  " 5         [        R                  " [        R                  R
                  UR                  5       5      n[        R                  " 5         OSR                  UR                  5      n[        R                  " U5      (       d  g [        R                   " U5      n["        R$                  " U5        ["        R&                  R)                  SR                  [*        R,                  UR                  5      5        U$ )Nz#Your project will be deleted: [{0}]zw
You can undo this operation for a limited period by running the command below.
    $ gcloud projects undelete {1}

{0})command_lib_utilParseProjectidr   r   r   	recommendEnableUserProjectQuotar   GetProjectDeletionRiskNameDisableUserProjectQuotaformatr   PromptContinuer   r   r   DeletedResourcestatusPrintr	   SHUT_DOWN_PROJECTS)selfargsproject_refprompt_messageresults        r   Run
Delete.RunE   s   "//8Kd//222t~~ !!#'>>








n ""$<CCDGGLn$$^44  -F$
 JJ	IIO$$dggJ/0 Mr!    N)__name__
__module____qualname____firstlineno____doc__r	   !CREATE_DELETE_IN_CONSOLE_SEE_ALSOdetailed_helpclassmethodr   r6   __static_attributes__r8   r!   r   r   r       s2    0 uFFG-E Er!   r   N)r=   
__future__r   r   r   +googlecloudsdk.api_lib.cloudresourcemanagerr   'googlecloudsdk.api_lib.smart_guardrailsr   googlecloudsdk.callioper   #googlecloudsdk.command_lib.projectsr	   r
   r#   +googlecloudsdk.command_lib.resource_managerr   googlecloudsdk.corer   googlecloudsdk.core.consoler   UniverseCompatibleDeleteCommandr   r8   r!   r   <module>rL      sR     # &  ' D D ( 5 H B # 2 >T > >r!   