Client APIs
API Reference Overview
Closes the specified database and de-allocates all memory allocated for that database.
This should be called after you are done with any database allocated through `duckdb_open` or `duckdb_open_ext`.
Note that failing to call `duckdb_close` (in case of e.g., a program crash) will not cause data corruption.
Still, it is recommended to always correctly close a database object after you are done with it.  
###### Syntax {#docs:api:c:connect::syntax}  
```c
void duckdb_close(
duckdb_database *database
);
```  
###### Parameters {#docs:api:c:connect::parameters}  
* `database`: The database object to shut down.  
<br>