Start by identifying whole sentences: they generally end with one of these characters '.', '?', '!'.
When you have that working, you have two choices, which are very similar to teh two ways you might do it in the real world:
1) Build a new output string as you go, but not copying '! sentences.
2) Build a collection of sentences, and remove all those ending with '!'
The first is not too bad: you need to allocate a new chunk of memory to hold all the text, remember where a sentence started and copy text to the end of the sentence. If it ends with a '!' move the output back to where it started so the next sentence overwrites it. If it doesn't, just remember the end of that sentence as the new "input point"
The second is more complex to implement, but simple in principle: create a collection (of your preference) and copy each sentence to it when you identify them. Then process the collection sentence by sentence, and remove the '!' lines from the collection.
If you are having problems getting started at all, then this may help:
How to Write Code to Solve a Problem, A Beginner's Guide[
^]