added delete function in ruby