+ elif deleteFlag and http_code in (200, 201, 202, 204):
+ # In case of deletion and HTTP Status = 20* OK, deletion may be PROCESSING or COMPLETED
+ # If this is the case, we should keep on polling until 404 (deleted) is returned.
+ wait_for_404 = True