Everyone responds to food differently, so I recommend using a food diary to identify what your personal trigger foods are before completely eliminating anything from your diet.
Calling them "trigger foods" is a little misleading, considering that some trigger foods are actually beverages. If you feel overly gassy after drinking something fizzy with bubbles, you'll want to avoid carbonated drinks like soda and seltzer and other naturally effervescent beverages (including sparkling wines). If you always seem to have a bout of IBS after a cocktail party or a night out at the bar, alcohol is likely to be the culprit. And many people also suffer from IBS after drinking caffeinated coffee, teas, and soft drinks.