added remove cache logic for collection APIs