Database extends DatabaseHandle { public void destroy() throws VError { io.v.syncbase.internal.Database.Destroy(fullName); } Database(Id id); VersionedPermissions getPermissions(); void setPermissions(VersionedPermissions permissions); void create(Permissions permissions); void destroy(); boolean exists(); BatchDatabase beginBatch(BatchOptions options); Syncgroup syncgroup(String name); Syncgroup syncgroup(Id id); List<Id> listSyncgroups(); void watch(byte[] resumeMarker, List<CollectionRowPattern> patterns,
                      final WatchPatternsCallbacks callbacks); void runInBatch(final BatchOperation op, BatchOptions options);  }
@Test public void destroy() { Id dbId = new Id("idp:a:angrybirds", "core_destroy_db"); try { Database db = Service.database(dbId); db.create(anyDbPermissions()); db.destroy(); } catch (VError vError) { vError.printStackTrace(); fail(vError.toString()); } }