<s> import os , sys <EOL> def run ( args ) : <EOL> if len ( sys . argv ) != <NUM_LIT:2> : <EOL> print ( '<STR_LIT>' ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> topdir = sys . argv [ <NUM_LIT:1> ] <EOL> suffix = sys . argv [ <NUM_LIT:2> ] <EOL> if suffix [ <NUM_LIT:0> ] != '<STR_LIT:.>' : <EOL> suffix = '<STR_LIT:.>' + suffix <EOL> for ( root , _ , files ) in os . walk ( topdir ) : <EOL> for f in files : <EOL> if f . endswith ( suffix ) : <EOL> fullname = os . path . join ( root , f ) <EOL> os . unlink ( fullname ) <EOL> return <NUM_LIT:0> <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> run ( sys . argv [ <NUM_LIT:1> : ] ) </s>
