The Disconnect method closes a connection to the data source. This is typically used in the OpenDataSource script of a Database object prior to calling the Connect method to ensure any existing connection is closed before opening a new one.
Disconnect() as Boolean
True if the connection was successfully closed, False if not.
See the example in the Connect topic.