made return code different for successfully deleted variable