diff --git a/pykat/finesse.py b/pykat/finesse.py
index 0e44643df4231deb227b37a31fa80f359682d411..c6bec39be26dfbb0ca9bfe308f90664ea763b3f6 100644
--- a/pykat/finesse.py
+++ b/pykat/finesse.py
@@ -605,7 +605,16 @@ class kat(object):
                 y = data[1:cols].squeeze()
             
             return [x, y, hdr]
-            
+
+    def removeLine(self, fragment) :
+        for key in self.__blocks:
+            objs = self.__blocks[key].contents
+            for obj in objs:
+                if isinstance(obj, str):
+                    if fragment in obj:
+                        print "  ** removing line '{0}'".format(obj)
+                        objs.remove(obj)
+                
     def generateKatScript(self) :
         """ Generates the kat file which can then be run """