Hi mukesh1,
To delete TempData value after assignment you can use the below code.
TempData.Remove("userid"); // Remove Particular TempData i.e. userid.
TempData.Clear(); // Remove All TempData.
After delete you can't retrieve as TempData is cleared. To retrieve you need to reassign the value.