function to delete a collection
added deletion of collection
call delete collection