How to delete a particular line which has occurred many times in the file in vim

filtering, vim

Solution

You could do:

:g/This is an example/d

Problem

I want to delete a line: `This is an example`, which occurs multiple times in a file. How do I go about it. Thanks, Alisha

Original source