add delete api with query in params