def delete(self, package):
        filename = self.get_path(package)
        os.unlink(filename)
        version_dir = os.path.dirname(filename)
        try:
            os.rmdir(version_dir)
        except __HOLE__:
            return
        package_dir = os.path.dirname(version_dir)
        try:
            os.rmdir(package_dir)
        except OSError:
            return
dataset/ETHPy150Open mathcamp/pypicloud/pypicloud/storage/files.py/FileStorage.delete