Remove Dynamic URLs from Google index

Hello,

We have an e-commerce website with dynamic urls: “?cid=” and “?pid=” . I have added this to the robots.txt: Disallow:/*?
and I have requested to remove the url using “/filename?cid=” and “filename?pid=”

This should remove all the dynamic urls from google index right?