Use scikit-bio's `remove_files` instead:

http://scikit-bio.org/generated/skbio.util.misc.remove_files.html?highlight=remove_files#skbio.util.misc.remove_files