Name | Required/Optional | Data type | Description |
---|---|---|---|
ObjectType | Optional | AcObjectType | An AcObjectType constant that represents the type of object to delete. |
ObjectName | Optional | Variant | A string expression that's the valid name of an object of the type selected by the ObjectType argument. If you run Visual Basic code containing the DeleteObject method in a library database, Microsoft Access looks for the object with this name first in the library database, and then in the current database. |
DoCmd.DeleteObject acTable, "Former Employees Table"
https://docs.microsoft.com/en-us/office/vba/api/access.docmd.deleteobject