Remove post in guestbook

Hi im using this guestbook:
http://www.kirupa.com/web/xml_guestbook.htm

But i would like to add a remove button so that i could remove the last added post how would i do that? im kind of new to xml and php.

thankful for any help i could get!