Why did you remove the assert statements? Those are very important to ensure that the correct doc is being deleted.