added wipe function

Use with care as it's largely untested