First look at the discussion in this thread , which as of this writing is right below yours.
Then write some code, post it, and we'll go from there.
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
In this particular thread that VernonDozier posted above:
http://www.daniweb.com/forums/thread214101.html
look at post # 12 by Ancient Dragon where he gives you two possible explanations as to how you could go about creating a delete function. I'm not a betting man, but I'm willing to bet that if you look at either of those suggestions and then try to write your own code and post it here, these guys (myself included, if I can) will be willing to help.
-D
dgr231
Junior Poster in Training
76 posts since Aug 2009
Reputation Points: 55
Solved Threads: 7