payloadcms / payloadcms/payload

Folder-based asset deletes do not use Trash confirmation

Open
#16,327 0 comments 0 reactions 1 assignee View on GitHub

@PatrikKozak is already working on this.

Since Apr 21, 2026.

area: ui db: sqlite
Dominant language
TypeScript
Stars
44.8k
Forks
4.2k
Avg merge
2d 21h
Merged PRs (30d)
53

Description

Describe the Bug

When a collection has both folders: true and trash: true, deleting documents from the normal collection list uses the Trash confirmation modal correctly, but deleting the same documents from the folder view does not.

In folder view, the bulk delete action opens the standard delete confirmation modal instead of the Trash-enabled version, so the Skip trash and delete permanently checkbox is not shown.

This appears to come from the folder selection delete path not forwarding the Trash props into the built-in bulk delete action.

Reproduction Steps
  1. Open a Payload project with a collection that has folders: true and trash: true.
  2. In the admin, create or use an existing folder.
  3. Add at least one document to that folder.
  4. Open the normal collection list view and select the same document there.
  5. Click delete and observe that Payload shows the Trash confirmation modal, including the Skip trash and delete permanently checkbox.
  6. Now switch to Browse by Folder / folder view.
  7. Open the folder that contains the same document.
  8. Select the document and click delete.
  9. Observe that Payload shows the plain delete confirmation instead of the Trash confirmation.
Which area(s) are affected?

area: ui

db: sqlite

Environment Info
Binaries:
  Node: 24.14.1
  npm: 11.11.0
  Yarn: N/A
  pnpm: 10.33.0
Relevant Packages:
  payload: 3.82.1
  next: 16.2.3
  @payloadcms/db-sqlite: 3.82.1
  @payloadcms/drizzle: 3.82.1
  @payloadcms/email-nodemailer: 3.82.1
  @payloadcms/graphql: 3.82.1
  @payloadcms/next/utilities: 3.82.1
  @payloadcms/plugin-multi-tenant: 3.82.1
  @payloadcms/plugin-search: 3.82.1
  @payloadcms/richtext-lexical: 3.82.1
  @payloadcms/translations: 3.82.1
  @payloadcms/ui/shared: 3.82.1
  react: 19.2.5
  react-dom: 19.2.5
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 25.4.0: Sun Feb  8 23:36:18 PST 2026; root:xnu-12377.100.591.501.2~2/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 8

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.