Added delete function to Frontend