Thanks for the answer Devesh.
I have two parcel layers, submitting info for feature on first layer copies feature into second layer, and feature needs to be deleted from first layer. If executing addFeature and deleteFeature one after another, will cause issues if any one of them get error out.
One way is to revert the operation in case of error, do you think this is my best option?
Thanks,
Vikrant