
                         z    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	\R                  5      rg
)z/The gcloud datastore operations delete command.    )
operations)base)flags)
properties)	resources)
console_ioc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	Delete   z3Delete a completed Cloud Datastore admin operation.EXAMPLESz          To delete the completed operation with id `exampleId`, run:

            $ {command} exampleId

          or

            $ {command} projects/your-project-id/operations/exampleId
      c                 2    [         R                  " U S5        g)zhRegister flags for this command.

Args:
  parser: argparse.ArgumentParser, the parser for this command.
deleteN)r   AddOperationNameFlag)parsers    *lib/surface/datastore/operations/delete.pyArgsDelete.Args*   s     
vx0    c                 @   [         R                  R                  UR                  S[        R
                  R                  R                  R                  0SS9R                  5       n[        R                  " SR                  U5      SS9  [        R                  " U5      $ )N
projectsIdzdatastore.projects.operations)params
collectionz#The operation [{}] will be deleted.T)messagecancel_on_no)r   REGISTRYParsenamer   VALUEScoreproject	GetOrFailRelativeNamer   PromptContinueformatr   DeleteOperation)selfargsr   s      r   Run
Delete.Run3   s    ##		*++0088BB
 3 $ 4
 5ALN 	 5<<TB %%d++r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r(   __static_attributes__r*   r   r   r
   r
      s/    ; 
- 1 1,r   r
   N)r/    googlecloudsdk.api_lib.datastorer   googlecloudsdk.callioper   $googlecloudsdk.command_lib.datastorer   googlecloudsdk.corer   r   googlecloudsdk.core.consoler   DeleteCommandr
   r*   r   r   <module>r9      s0    6 8 ( 6 * ) 2$,T $,r   