Add deletefunction