How to add a remove function?

How to add a remove function?