The clearing function

Summary by esc of this universal mechanism