Description

This method will delete this McDBDatabase, when possible. This McDBDatabase must not be open and the backing file system files must be deletable for this operation to succeed.

Return Type

None  

Syntax

object.Delete

The Delete Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBDatabase.

Remarks

This method will fire the BeforeDatabaseDelete event to registered sinks. If no event sink cancels the event, the database defined by this McDBDatabase will be deleted and the AfterDatabaseDelete event will be fired. If database deletion fails for any reason (e.g. file system delete failure or event cancel) the AfterDatabaseDelete event will not be fired.

Exceptions

Error Value Description
E_FAIL &H80004005 Deletion failed. Either a registered event sink canceled the operation during the BeforeDatabaseDelete event, the file system was unable to delete the database files.
E_ACCESSDENIED &H80070005 Deletion of file system files failed (one or more files in the Files subdirectory)
CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT &H80004024 The McDBDatabase is open.