def adios(p):
            """Appropriately delete directory, file or link."""
            if os.path.exists(p) and not os.path.islink(p) and os.path.isdir(p):
                shutil.rmtree(p)
            elif os.path.exists(p):
                os.unlink(p)
Appropriately delete directory, file or link.
product/gradle-plugin/src/main/python/wheel/bdist_wheel.py