Kara limited the situation in a question you gave on her answer. Therefore, I would like to add one more comment.
Imagine that you are invited to a dinner with Japanese foods. And you are looking at Udon, ra-men, Soba(Buckwheat noodles), Sushi, Miso soup, and Tsukemono(pickle) and so forth. But you can not eat only Japanese pickle in these menus.
In this case,you can say that ' つけもの だけ たべられません'. Like this, you can put 'だけ' after object to make a negative sentence.
Does it make a sense?