'Restore the image to queued status and remove data from staging.
:param image_repo: The instance of ImageRepo
:param image: The image will be restored
:param staging_store: The store used for staging'

def _unstage(self, image_repo, image, staging_store):

    loc = glance_store.location.get_location_from_uri(str(((CONF.node_staging_uri + '/') + image.image_id)))
    try:
        staging_store.delete(loc)
    except glance_store.exceptions.NotFound:
        pass
    finally:
        self._restore(image_repo, image)
