
    y                         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                   " S	 S
\R                  5      5       rSS0\l        g)z'logging logs delete' command.    )absolute_import)division)unicode_literals)util)base)log)
console_ioc                   .    \ rS rSrSr\S 5       rS rSrg)Delete   zDelete all entries from a log in the global ```_Default``` log bucket.

## EXAMPLES

To delete all entries from log 'my-log' in the global ```_Default``` log
bucket:

  $ {command} my-log
c                 $    U R                  SSS9  g)z Register flags for this command.log_namez	Log name.)helpN)add_argument)parsers    "lib/surface/logging/logs/delete.pyArgsDelete.Args(   s     
5    c                    [         R                  " SUR                  -  SS9  [        R                  " 5       R
                  R                  [        R                  " 5       R                  [        R                  " [        R                  " 5       UR                  5      S95        [        R                  " UR                  5        g)zThis is what gets called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.
z(Really delete all log entries from [%s]?T)cancel_on_no)logNameN)r	   PromptContinuer   r   	GetClientprojects_logsr   GetMessages LoggingProjectsLogsDeleteRequestCreateLogResourceNameGetCurrentProjectParentr   DeletedResource)selfargss     r   Run
Delete.Run-   s     2T]]B 	NN""));;..,,.? 	< 	@A &r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r#   __static_attributes__r%   r   r   r   r      s      6 6'r   r   DESCRIPTIONz
        {index}
        With no entries, the log will not appear in the list of your
        project's logs. However, you can write new entries to the log.
    N)r*   
__future__r   r   r   googlecloudsdk.api_lib.loggingr   googlecloudsdk.callioper   googlecloudsdk.corer   googlecloudsdk.core.consoler	   DefaultUniverseOnlyDeleteCommandr   detailed_helpr%   r   r   <module>r6      s[     % &  ' / ( # 2 'T ' 'F   r   