<s> from django . core . management . base import LabelCommand <EOL> from couchlog . models import ExceptionRecord <EOL> class Command ( LabelCommand ) : <EOL> """<STR_LIT>""" <EOL> help = "<STR_LIT>" <EOL> args = "<STR_LIT>" <EOL> label = "<STR_LIT>" <EOL> def handle ( self , * args , ** options ) : <EOL> all_matching_records = ExceptionRecord . view ( "<STR_LIT>" , <EOL> startkey = "<STR_LIT>" , <EOL> endkey = "<STR_LIT>" , <EOL> reduce = False ) . all ( ) <EOL> for row in all_matching_records : <EOL> ExceptionRecord . get_db ( ) . delete_doc ( row [ "<STR_LIT:id>" ] ) </s>
