
    wBf                      @    d Z ddlmZmZmZ dedefdZdededefdZy	)
zUCLI implementation for `conda-env remove`.

Removes the specified conda environment.
    )ArgumentParser	Namespace_SubParsersActionsub_parsersreturnc                     ddl m} ddlm}m}m} d} |d| d      } |d      } | j                  	 d|||d	|}	 ||	        ||	        ||	       |	j                  d
       |	S )N   )dals   )add_output_and_prompt_optionsadd_parser_prefixadd_parser_solverzRemove an environment.z	
        z

        Removes a provided environment.  You must deactivate the existing
        environment before you can remove it.

        zj
        Examples::

            conda env remove --name FOO
            conda env remove -n FOO

        )helpdescriptionepilogz!conda.cli.main_env_remove.execute)func)remove)
auxlib.ishr
   helpersr   r   r   
add_parserset_defaults)
r   kwargsr
   r   r   r   summaryr   r   ps
             9lib/python3.12/site-packages/conda/cli/main_env_remove.pyconfigure_parserr      s    !  'G			 		K 	F 				
 	A aa!!$NN;N<H    argsparserc                     ddl m} ddlm} t	        |       } | j                  dd d d d d d dd dd
       t        d	i | } |j                  |         || |       y)
Nr	   )context)executeTF)
allchannelfeaturesoverride_channels	use_local	use_cacheofflineforcepinnedkeep_env)argparse_argsr    )base.contextr!   cli.main_remover"   varsupdater   __init__)r   r   r!   r   s       r   r"   r"   <   sm    &3:DKK!%	
 tD4(
4r   N)__doc__argparser   r   r   r   intr"   r.   r   r   <module>r7      sC   
 *"3 *. *Z) ^  r   