![]() |
VOOZH | about |
Using drop() method we can drop collection if collection exists. If collection is not found then it returns False otherwise it returns True if collection is dropped.
Syntax:
drop()
Example 1:
The sample database is as follows:
Output:
Example 2: If collection does not exist.
Output:
Not Present