Hi Lisbeth,
I am doing this with a couple of files and as I am pragmatic about these things I use the EDD to assign a particular paragraph format to the data I wanted to remove. That paragraph format is set to white font color, 2 pt high with no space above, no space below and 0 pt line space. This effectively removes the content from the visible document.
Getting into automatically applied conditions in FrameMaker might not be the easiest thing to do. My method does not require any scripting.
Kind regards
Jang