def clean_dir(directory):
 sh('find {dir} -type f -delete'.format(dir=directory))

def clean_dir ( directory ) : sh ( 'find {dir} -type f -delete' . format ( dir = directory ) )
delete all the files from the specified directory .