added purchases delete function