@themes.command('remove')
@click.argument('theme_identifier')
@click.option('--force', '-f', default=False, is_flag=True, help='Removes the theme without asking for confirmation.')
def remove_theme(theme_identifier, force):
 validate_theme(theme_identifier)
 if ((not force) and (not click.confirm(click.style('Are you sure?', fg='magenta')))):
  sys.exit(0)
 theme = get_theme(theme_identifier)
 click.secho('[+] Removing theme from filesystem...', fg='cyan')
 shutil.rmtree(theme.path, ignore_errors=False, onerror=None)

@ themes . command ( 'remove' ) @ click . argument ( 'theme_identifier' ) @ click . option ( '--force' , '-f' , default = False , is_flag = True , help = 'Removes the theme without asking for confirmation.' ) def remove_theme ( theme_identifier , force ) : validate_theme ( theme_identifier ) if ( ( not force ) and ( not click . confirm ( click . style ( 'Are you sure?' , fg = 'magenta' ) ) ) ) : sys . exit ( 0 ) theme = get_theme ( theme_identifier ) click . secho ( '[+] Removing theme from filesystem...' , fg = 'cyan' ) shutil . rmtree ( theme . path , ignore_errors = False , onerror = None )
removes a theme from the filesystem .