Add support for deleting local objects in response to a 404 (Not Found) or 410 (Gone) status code. closes #1292