HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //usr/lib/google-cloud-sdk/lib/surface/projects/__pycache__/delete.cpython-312.pyc
�

���
����dZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZdd	lm
Zdd
lmZddlmZddlmZe
j*Gd
�de
j,��Zy)zCommand to delete a project.�)�absolute_import)�division)�unicode_literals)�projects_api)�smart_guardrails)�base)�flags)�util)�
completers)�log)�
console_ioc�B�eZdZdZdej
iZed��Zd�Z	y)�DeleteanDelete 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�<�tjd�j|�|j�tjj
k7r$tjd�j|�|jjtj�y)N�deletezproject deletion)r	�GetProjectIDNumberFlag�AddToParser�ReleaseTrackr�GA�GetRecommendFlag�display_info�AddCacheUpdaterr�ProjectCompleter)�cls�parsers  �lib/surface/projects/delete.py�ArgszDelete.Args<sl��	� � ��*�6�6�v�>�
����T�.�.�1�1�1����/�0�<�<�V�D�
���'�'�
�(C�(C�D�c��tj|j�}|j�tjj
k7rq|jret	j�tjtjj
|j��}t	j�ndj|j�}tj|�sytj |�}t#j$|�t"j&j)djt*j,|j��|S)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�idrrr�	recommend�EnableUserProjectQuotar�GetProjectDeletionRisk�Name�DisableUserProjectQuota�formatr
�PromptContinuerrr�DeletedResource�status�Printr	�SHUT_DOWN_PROJECTS)�self�args�project_ref�prompt_message�results     r�Runz
Delete.RunEs���"�/�/����8�K�����d�/�/�2�2�2�t�~�~��!�!�#�'�>�>�
�
�
�
�
�
�
�
�
��n��"�"�$�<�C�C�D�G�G�L�n��$�$�^�4�
�
�
 �
 ��
-�F�����$�
�J�J���	I�IO���$�$�d�g�g�J/�0��MrN)
�__name__�
__module__�__qualname__�__doc__r	�!CREATE_DELETE_IN_CONSOLE_SEE_ALSO�
detailed_help�classmethodrr4�rrrr s2���0�u�F�F�G�-��E��E�rrN)r8�
__future__rrr�+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�
DeleteCommandrr<rr�<module>rGsR�� #�&��'�D�D�(�5�H�B�#�2����>�T�
�
�>��>r