add delete method in HG and fix etag