deleteFunc added.
todo:test.