Finding and deleting empty file

A short Python script to find and delete all empty files.

# -*- coding: utf-8 -*-
# search and delete empty files

import os

# this is the directory
str_directory = 'myfolder'

# get list of all files in the directory and remove possible hidden files
list_files = [x for x in os.listdir(str_directory) if x[0]!='.']

# now loop through the files and remove empty ones
for each_file in list_files:
    file_path = '%s/%s' % (str_directory, each_file)

    # check size and delete if 0
    if os.path.getsize(file_path)==0: