Delete databases

Skip to end of metadata
Go to start of metadata

Simply call delete on the database instance. This will delete the database will all its documents. There is no undo.

CouchDbClient server = new DefaultCouchDbClient("localhost", 5984);

// If the database does not exist it will be created automatically
Database database = server.getDatabase("couch4j");

database.delete();
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Anonymous replies:

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account. You can also Sign Up for a new account.