'Delete all queued images'

def delete_all_queued_images(self):

    res = self.do_request('DELETE', '/queued_images')
    data = json.loads(res.read())
    num_deleted = data['num_deleted']
    return num_deleted
