var newString = oldString.replaceAll("character/string goes here", ""); // Example var oldString = "Hello World!"; var newString = oldString.replaceAll("o", ""); console.log(newString); // Prints 'Hell Wrld!' to console.