DELETE http method and reference counting fixes