Implement delete functionality.