_delSub can now accept a path and will optionally remove any empty parent elements after deleting the target elements.