readding delete

accidentally removed delete functionality from first version.
Re-adding.