Preliminary delete() function seems to work. More testing needed.