🎲
Simpl.DB
GitHubDonate
v2.13.0
v2.13.0
  • Introduction
  • Changelog
  • Getting Started
  • Troubleshooting
  • Documentation
    • Database
      • .add()
      • .clear()
      • .createCollection()
      • .delete()
      • .deleteCollection()
      • .extend()
      • .fetch()
      • .get()
      • .getCollection()
      • .has()
      • .pull()
      • .push()
      • .rename()
      • .save()
      • .set()
      • .subtract()
      • .toJSON()
      • .update()
    • Collection
      • .create()
      • .createBulk()
      • .extend()
      • .fetch()
      • .fetchAll()
      • .fetchMany()
      • .fetchOrCreate()
      • .get()
      • .getAll()
      • .getMany()
      • .getOrCreate()
      • .has()
      • .random()
      • .remove()
      • .reset()
      • .save()
      • .update()
  • Types/Interfaces
    • Data
    • JSONData
    • Modifiable<T>
Powered by GitBook
On this page

Was this helpful?

  1. Documentation
  2. Database

.deleteCollection()

Deletes a collection.

deleteCollection(name)

Parameter

Description

name

String

The name of the collection

Returns

Description

Boolean

Whether the collection was successfully deleted or not

db.deleteCollection('users'); // true
Previous.delete()Next.extend()

Last updated 1 year ago

Was this helpful?