Home > git-documentdb > GitDocumentDB > destroy
#
GitDocumentDB.destroy() methodDestroy a database
Signature:#
ParametersParameter | Type | Description |
---|---|---|
options | DatabaseCloseOption | The options specify how to close database. |
Promise<{ ok: true; }>
#
RemarksGitDocumentDB.close() is called automatically before destroying.
Default value of options.force is true.
destroy() removes the Git repository and the working directory from the filesystem.
destroy() does not remove localDir (which is specified in constructor).