removed nokogiri dependency and fixed delete