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();
Comments (0)
Anonymous replies:
Help Tips
- Text formatting
- Headings
- Lists
Full notation guide*bold*bold_italic_italich1.Large headingh5.Small heading*Bulleted point#Numbered point