'Remove the temporary image from the client.'

@flow.StateHandler()
def DeleteTemporaryImage(self, responses):

    if (not responses.success):
        raise flow.FlowError('Unable    to    collect    the    flash    image:    {0}'.format(responses.status))
    response = responses.First()
    self.SendReply(response)
    with aff4.FACTORY.Create(self.client_id.Add('spiflash'), aff4.AFF4Symlink, token=self.token) as symlink:
        symlink.Set(symlink.Schema.SYMLINK_TARGET, response.AFF4Path(self.client_id))
    self.CallClient(server_stubs.DeleteGRRTempFiles, responses.request_data['image_path'], next_state='TemporaryImageRemoved')
