Add functions of removing file and empty directories