Implement delete functionality

This code implements delete functionality for routes