If you did options.delete(:appsecret_proof) in the line above, there would be no need for the additional clean up here.