How to check if a collection exists and delete it?

I am using 3.5.5 version