Added delete function through repository