payloadcms / payloadcms/payload
Folder-based asset deletes do not use Trash confirmation
@PatrikKozak is already working on this.
Since Apr 21, 2026.
- 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
- Open a Payload project with a collection that has
folders: trueandtrash: true. - In the admin, create or use an existing folder.
- Add at least one document to that folder.
- Open the normal collection list view and select the same document there.
- Click delete and observe that Payload shows the Trash confirmation modal, including the
Skip trash and delete permanentlycheckbox. - Now switch to Browse by Folder / folder view.
- Open the folder that contains the same document.
- Select the document and click delete.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.