Remove is now synchronous and returns the number of docs removed.
Tests pass.