DB Version: can not delete pages
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 28
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
### Search first
- [x] I searched and no similar issues were found
### What Happened?
Trying to delete journal or other pages fails with the following error logged.
Graph was imported from older file based Logseq
```
2026-06-19T05:54:05.278Z [stdio] [stdout] :debug :transact-failed :tx-meta {:outliner-op :delete-page, :db-sync/tx-id #uuid "08b36384-eb38-4920-83a2-aa6fadc32833", :client-id "1be61e17-c1b9-44ca-bf97-1e5d33ad1175", :local-tx? true, :outliner-ops ([:delete-page [#uuid "00000001-2026-0616-0000-000000000000" {}]])} :tx-data (#datascript/Datom [18078 :block/uuid #uuid "00000004-7238-1304-3000-000000000000" 536882603 true] #datascript/Datom [18078 :block/name "recycle" 536882603 true] #datascript/Datom [18078 :block/title "Recycle" 536882603 true] #datascript/Datom [18078 :block/created-at 1781848445270 536882603 true] #datascript/Datom [18078 :block/updated-at 1781848445270 536882603 true] #datascript/Datom [18078 :logseq.property/hide? true 536882603 true] #datascript/Datom [18078 :logseq.property/built-in? true 536882603 true] #datascript/Datom [18073 :block/parent 18078 536882603 true] #datascript/Datom [18073 :block/order "a0" 536882603 true] #datascript/Datom [18073 :logseq.property/deleted-at 1781848445270 536882603 true] #datascript/Datom [18073 :logseq.property.recycle/original-page 18073 536882603 true]) :error "#error {:message \"Page can't have block as parent\", :data {:tx-data (#datascript/Datom [18078 :block/uuid #uuid \"00000004-7238-1304-3000-000000000000\" 536882603 true] #datascript/Datom [18078 :block/name \"recycle\" 536882603 true] #datascript/Datom [18078 :block/title \"Recycle\" 536882603 true] #datascript/Datom [18078 :block/created-at 1781848445270 536882603 true] #datascript/Datom [18078 :block/updated-at 1781848445270 536882603 true] #datascript/Datom [18078 :logseq.property/hide? true 536882603 true] #datascript/Datom [18078 :logseq.property/built-in? true 536882603 true] #datascript/Datom [18073 :block/parent 18078 536882603 true] #datascript/Datom [18073 :block/order \"a0\" 536882603 true] #datascript/Datom [18073 :logseq.property/deleted-at 1781848445270 536882603 true] #datascript/Datom [18073 :logseq.property.recycle/original-page 18073 536882603 true] #datascript/Datom [18078 :block/tx-id 536882603 536882604 true] #datascript/Datom [18073 :block/tx-id 536882593 536882604 false] #datascript/Datom [18073 :block/tx-id 536882603 536882604 true])}}"
2026-06-19T05:54:05.279Z [stdio] [console.error] Error: Page can't have block as parent
2026-06-19T05:54:05.279Z [stdio] [console.error] at new hk (/Applications/Logseq.app/Contents/Resources/app.asar/js/db-worker-node.js:2:619195)
2026-06-19T05:54:05.280Z [stdio] [console.error] at jk (/Applications/Logseq.app/Contents/Resources/app.asar/js/db-worker-node.js:2:619494)
2026-06-19T05:54:05.280Z [stdio] [console.error] at ik (/Applications/Logseq.app/Contents/Resources/app.asar/js/db-worker-node.js:2:619455)
2026-06-19T05:54:05.280Z [stdio] [console.error] at B2a (/Applications/Logseq.app/Contents/Resources/app.asar/js/db-worker-node.js:2:1522090)
2026-06-19T05:54:05.280Z [stdio] [console.error] at E2a (/Applications/Logseq.app/Contents/Resources/app.asar/js/db-worker-node.js:2:1522576)
2026-06-19T05:54:05.280Z [stdio] [console.error] at r2.j (/Applications/Logseq.app/Contents/Resources/app.asar/js/db-worker-node.js:2:1529742)
2026-06-19T05:54:05.280Z [stdio] [console.error] at H2a (/Applications/Logseq.app/Contents/Resources/app.asar/js/db-worker-node.js:2:1523986)
2026-06-19T05:54:05.280Z [stdio] [console.error] at s2 (/Applications/Logseq.app/Contents/Resources/app.asar/js/db-worker-node.js:2:1523557)
2026-06-19T05:54:05.280Z [stdio] [console.error] at qnb (/Applications/Logseq.app/Contents/Resources/app.asar/js/db-worker-node.js:2:2054041)
2026-06-19T05:54:05.280Z [stdio] [console.error] at Function. (/Applications/Logseq.app/Contents/Resources/app.asar/js/db-worker-node.js:2:2215188)
2026-06-19T05:54:05.281Z [severe] [frontend.worker.db-worker-node] {:db-worker-node-invoke-failed {:status 500, :code :exception, :error #error {:message "Page can't have block as parent", :data {:tx-data (#datascript/Datom [18078 :block/uuid #uuid "00000004-7238-1304-3000-000000000000" 536882603 true] #datascript/Datom [18078 :block/name "recycle" 536882603 true] #datascript/Datom [18078 :block/title "Recycle" 536882603 true] #datascript/Datom [18078 :block/created-at 1781848445270 536882603 true] #datascript/Datom [18078 :block/updated-at 1781848445270 536882603 true] #datascript/Datom [18078 :logseq.property/hide? true 536882603 true] #datascript/Datom [18078 :logseq.property/built-in? true 536882603 true] #datascript/Datom [18073 :block/parent 18078 536882603 true] #datascript/Datom [18073 :block/order "a0" 536882603 true] #datascript/Datom [18073 :logseq.property/deleted-at 1781848445270 536882603 true] #datascript/Datom [18073 :logseq.property.recycle/original-page 18073 536882603 true] #datascript/Datom [18078 :block/tx-id 536882603 536882604 true] #datascript/Datom [18073 :block/tx-id 536882593 536882604 false] #datascript/Datom [18073 :block/tx-id 536882603 536882604 true])}}, :message "Page can't have block as parent", :method :thread-api/apply-outliner-ops}, :line 325}
```
### Reproduce the Bug
1. Go to a page. Context menu on the title. Choose 'Delete page'
2. Another path. Go to Pages section, in the table select multiple pages. Click delete icon. Error is logged, pages are not deleted.
### Expected Behavior
_No response_
### Screenshots
_No response_
### Desktop or Mobile Platform Information
DB Logseq App version on MacOS. Latest nightly build, and this behavior is there for at least three months.
### Additional Context
_No response_
### Are you willing to submit a PR? If you know how to fix the bug.
- [ ] I'm willing to submit a PR (Thank you!)
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Reproduce deletion through the page title context menu and the Pages table, then inspect the :thread-api/apply-outliner-ops entry point and the :delete-page operation. Use the logged transaction data around the Recycle page and the “Page can't have block as parent” error to trace the failure. Done means single and multi-page deletion complete without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100