Implement delete (not quite done)