(root: string, csvRel: string)
| 322 | * (data.csv, schema.json, and the `pages/` record notes) in one shot. |
| 323 | */ |
| 324 | export async function deleteDatabase(root: string, csvRel: string): Promise<void> { |
| 325 | const formDir = formDirFromCsvPath(toPosix(csvRel)) |
| 326 | if (!formDir) throw new Error(`Not a database folder: ${csvRel}`) |
| 327 | await fs.rm(databaseDataPath(root, formDir), { recursive: true, force: true }) |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * Rename a database in place: rename its `<oldName>.base` folder to |
nothing calls this directly
no test coverage detected