Client APIs
API Reference Overview
Closes the appender by flushing all intermediate states to the table and destroying it. By destroying it, this function
de-allocates all memory associated with the appender. If flushing the data triggers a constraint violation,
then all data is invalidated, and this function returns DuckDBError. Due to the destruction of the appender, it is no
longer possible to obtain the specific error message with duckdb_appender_error. Therefore, call duckdb_appender_close
before destroying the appender, if you need insights into the specific error.  
###### Syntax {#docs:api:c:api::syntax}  
```c
duckdb_state duckdb_appender_destroy(
duckdb_appender *appender
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `appender`: The appender to flush, close and destroy.  
###### Return Value {#docs:api:c:api::return-value}  
`DuckDBSuccess` on success or `DuckDBError` on failure.  
<br>