Like RDBMS, OrientDB gives the element to drop an information base. Drop data set alludes to eliminating an information base totally.
The accompanying assertion is the fundamental punctuation of the Drop information base order.
DROP DATABASE [<database-name> <server-username> <server-user-password>]
Following are the insights regarding the choices in the above linguistic structure.
- <database-name> − Database name you need to drop.
- <server-username> − Username of the information base who has the advantage to drop a data set.
- <server-client password> − Password of the specific client.
Example
There are two different ways to drop a data set, one is drop a right now open data set and second is drop a specific data set by giving the specific name.
In this model, we will utilize a similar data set named 'demo' that we made in a previous section. You can utilize the accompanying order to drop an information base demo.
orientdb {db = demo}> DROP DATABASE
In the event that this order is effectively executed, you will get the accompanying yield.
Database 'demo' deleted successfully
Or on the other hand
You can utilize another order to drop an information base as follows.
orientdb> DROP DATABASE PLOCAL:/opt/orientdb/databases/demo admin admin
On the off chance that this order is effectively executed, you will get the accompanying yield.
Database 'demo' deleted successfully