tried and failed to completely implement delete functionality