I want to remove last three characters from a string:
string myString = \"abcdxxx\";
Note that the string is dynamic data.
You can use String.Remove to delete from a specified position to the end of the string.
myString = myString.Remove(myString.Length - 3);