Skip to content
git-on-cloudflare
Git hosting on Cloudflare
Sign in
rachel
/
flamemail
main
Loading...
Browse
Commits
Admin
File
Blob: scripts/reset-local-d1.mjs
..
/
main
/
scripts
/
reset-local-d1.mjs
javascript
8 lines
Copy
View
Raw
Download
Copy raw
View raw
Download
1
import
{ rm }
from
"node:fs/promises"
;
2
3
const
LOCAL_D1_STATE_DIR
=
".wrangler/state/v3/d1"
;
4
5
await
rm
(
LOCAL_D1_STATE_DIR
, {
recursive
:
true
,
force
:
true
});
6
7
console
.
log
(
`Removed local D1 state at
${LOCAL_D1_STATE_DIR}
`
);