Add delete functionality to backend