Fix check for delete status code