'Remove files from directory'

def __remove_the_files(self, the_dir):

    list_of_files = os.listdir(the_dir)
    for file in list_of_files:
        rem_file = os.path.join(Copy.__dir, file)
        if os.path.isdir(rem_file):
            self.__remove_the_files(rem_file)
        else:
            try:
                os.remove(rem_file)
            except OSError:
                pass
