update response code by deleting item