$ hg init remove-example $ cd remove-example $ echo a > a $ mkdir b $ echo b > b/b $ hg add a b adding b/b $ hg commit -m 'Small example for file removal' $ hg remove a $ hg status R a $ hg remove b removing b/b