[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'DB' (#fcl)

# TDatabase.Destroy

Remove a TDatabase instance from memory.

## Declaration

Source position: db.pas line 2083

`public destructor TDatabase.Destroy; override;`

## Description

Destroy starts by disconnecting the database (thus closing all datasets and ending all transactions), then notifies all connected datasets and transactions that it is about to be released. After this, it releases all resources used by the TDatabase instance

## See also

TDatabase.CloseDatasets |  | Close all connected datasets

Documentation generated on: May 14 2021