#9780 unable to delete d1 db
Cannot reproduce with wrangler 4.60.0 - D1 delete works correctly. Original error code 7500 with [object Object] message suggests transient API issue or since-fixed bug.
Ask reporter to verify with latest wrangler version
Analysis Report
Issue Review: cloudflare/workers-sdk#9780
Summary
D1 database deletion fails with [object Object] error message and code 7500.
Findings
- Created: 2025-06-27
- Updated: 2025-07-13
- Version: 4.10.0 → 4.60.0 (current)
- Component: D1 (wrangler)
- Labels: bug, d1
- Comments: 1
Key Evidence
- Error message shows
[object Object] [code: 7500]- the[object Object]indicates API returned error as object not string - Error code 7500 is a D1 authorization/permission error (seen in related issues #5292, #4998)
- Reproduction attempted with wrangler 4.60.0: Could NOT reproduce - delete works successfully
- No merged PRs explicitly fixing this issue (#9780)
- Issue number not found in changelog
- One comment from another user (ssommelet21) reports different but related issue: being able to query a deleted database
Analysis
- The
[object Object]error message is a wrangler bug where API error objects are not properly serialized to strings - Error code 7500 typically indicates D1 authorization errors
- The issue was reported on wrangler 4.10.0 and cannot be reproduced on 4.60.0
- Possible causes:
- Transient D1 backend API issue at time of report
- Account-specific permission issue
- Fixed in subsequent wrangler or backend updates
- The commenter's issue about querying deleted databases is a separate D1 backend consistency concern
Recommendation
Status: NEEDS VERIFICATION
Reasoning: The issue cannot be reproduced with current wrangler version (4.60.0). The reporter was using wrangler 4.10.0, which was already outdated at time of report. The error may have been a transient API issue or has been fixed in subsequent updates. However, we should ask the reporter to verify if the issue persists with the current version before closing.
Action: Ask reporter to update to latest wrangler and try again. If no response in 30 days, close as stale.
Suggested Comment
Hi @Bettlebrox,
Thanks for reporting this issue. I attempted to reproduce the
wrangler d1 deleteerror with the current version (4.60.0) but the delete operation completed successfully.The
[object Object]in your error message suggests the D1 API returned an error object that wasn't being properly serialized. This may have been a transient API issue or something that has since been fixed.Could you please:
- Update to the latest wrangler version:
npm install wrangler@latest- Try the delete operation again
- Let us know if you still encounter the issue
If the issue persists, please share:
- Your current wrangler version (
wrangler --version)- The full error output
- Whether this happens consistently or intermittently
If we don't hear back in 30 days, we'll close this issue. Feel free to reopen if you can reproduce it with the latest version.
Notes & Feedback (0)
No notes yet.