Inspect D1 databases and their size

d1 & hyperdrive

// what it does

list shows every D1 database in the account with its UUID — handy for grabbing a database_id — while info reports size, table count, and state for one database. Reach for info to see how close you are to your plan's storage limit.

// shell

$ wrangler d1 list
$ wrangler d1 info <name>

// gotcha

Database size counts against your plan's D1 storage limit, and reported size may not drop immediately after a large DELETE until D1 compacts.