GetRidOf
Deletes a database permanently. Before the database is deleted, its database header will be corrupted. The setting in the IDEA check box Use Recycle Bin for deleted files has no effect on this command.
Compatibility
Available as of IDEA version 9.0
Syntax
GetRidOf(filePath as String)
Parameter
filePath
Path to the database to be deleted.
Remarks
If the path is empty, an error will be raised.
If the database does not exist, no changes will be made.
Example
Dim SimpleCommands As Object
Dim fileName As String
Sub Main
Set SimpleCommands = SmartContext.MacroCommands.SimpleCommands
fileName = "Test.imd"
'Delete database "Test".
SimpleCommands.GetRidOf fileName
'Release object.
Set SimpleCommands = Nothing
End Sub