Use :g instead of :substitute .
:g/pattern/d
will delete all lines matching the pattern.
As for the pattern, yours will match patter , pattern , patternn and so on. Use a wildcard . to match any characters. So your regex should be pattern.*$ ---, but if you want to completely delete the lines :g/pattern/d does the trick in order.
progo
source share