Table of Contents

Method DeleteDatabaseAsync

Namespace
MongoDB.EntityFrameworkCore.Storage
Assembly
MongoDB.EntityFrameworkCore.dll

DeleteDatabaseAsync(CancellationToken)

Delete the database specified in the connection options asynchronously.

public Task<bool> DeleteDatabaseAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A CancellationToken that can be used to cancel this asynchronous request.

Returns

Task<bool>

A Task that, when resolved, will be true if the database was deleted, false if it already existed.