Delete transient by name from saved array

fix iteration variables to get transient name which is the index of the saved transient array