@plug.handler()
def abort_upload(metadata):
    tmp_file = to_tmp(metadata.path)
    try:
        os.unlink(tmp_file)
    except (IOError, __HOLE__) as e:
        raise ServiceError(
            u"Error deleting file '{}': {}".format(tmp_file, e)
        )
dataset/ETHPy150Open onitu/onitu/drivers/local_storage/onitu_local_storage/local_storage.py/abort_upload