add basic delete function