Subtract the weights of one vertex group from another
You can use a Vertex Weight Mix modifier.
Say you have Vertex Group A :

And B :

In order to subtract B from A, add a Vertex Weight Mix set to Subtract and to effect only group A.
Result when viewing the A Group after adding the modifier :