@click.command("<STR_LIT>")<EOL>@click.option("<STR_LIT>", "<STR_LIT>", is_flag=True, help="<STR_LIT>")<EOL>@click.option("<STR_LIT>", "<STR_LIT>", help="<STR_LIT>")<EOL>@click_log.simple_verbosity_option(logger)<EOL>def prune(symbol: str, all: str):
app = PriceDbApplication()<EOL>app.logger = logger<EOL>count = <NUM_LIT:0><EOL>if symbol is not None:<EOL><INDENT>sec_symbol = SecuritySymbol("<STR_LIT>", "<STR_LIT>")<EOL>sec_symbol.parse(symbol)<EOL>deleted = app.prune(sec_symbol)<EOL>if deleted:<EOL><INDENT>count = <NUM_LIT:1><EOL><DEDENT><DEDENT>else:<EOL><INDENT>count = app.prune_all()<EOL><DEDENT>print(f"<STR_LIT>")<EOL>
Delete old prices, leaving just the last.