aboutsummaryrefslogtreecommitdiff
path: root/src/server/database.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/database.ts')
-rw-r--r--src/server/database.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/server/database.ts b/src/server/database.ts
index 9ba461b65..cfd707825 100644
--- a/src/server/database.ts
+++ b/src/server/database.ts
@@ -130,10 +130,6 @@ export namespace Database {
return collectionNames;
}
- public async clear() {
- return Promise.all((await this.getCollectionNames()).map(collection => this.dropSchema(collection)));
- }
-
public delete(query: any, collectionName?: string): Promise<mongodb.DeleteWriteOpResultObject>;
public delete(id: string, collectionName?: string): Promise<mongodb.DeleteWriteOpResultObject>;
public delete(id: any, collectionName = DocumentsCollection) {