Check out example codes for "delete one specific character in string C++". It will help you in understanding the concepts better.

Code Example 1

#include <algorithm>
str.erase(std::remove(str.begin(), str.end(), 'a'), str.end());

Learn ReactJs, React Native from akashmittal.com