Define 'remove' function as static method on path.