Skip to content

Truncate should only delete the documents not drop the collection #1306

@Idnan

Description

@Idnan

Using truncate() on model removes all the documents and indexes where as it should only delete the documents.

Here's what i used

ModelName::truncate();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions