Delete item, whether it's a file, a folder, or a folder
    full of other files and folders.

def remove(item):
    """
    Delete item, whether it's a file, a folder, or a folder
    full of other files and folders.
    """
    if os.path.isdir(item):
        shutil.rmtree(item)
    else:
        # Assume it's a file. error if not.
        os.remove(item)