Function deleteModel

  • Removes the model named name from the default connection, if it exists. You can use this function to clean up any models you created in your tests to prevent OverwriteModelErrors.

    Parameters

    • name: string | RegExp

    Returns mongoose.Mongoose

Generated using TypeDoc