Delete parent database without deleting child database

4 posts / 0 new
Last post
mikew
Offline
Joined: 09/25/2019 - 08:25
Delete parent database without deleting child database

Hi,
 
is there a way to script deleting a parent database without deleting child database. When I do this manually it comes up with the option: would you like to delete child database? Is there a way to script this? (havening been able to find anything)
thanks for your time,
 
Mike

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

In the script just use:

Client.DeleteDatabase "Sample-DBASE.IMD"

It only deletes that database, it doesn't delete the child databases.  If you want those deleted you would have to have a DeleteDatabase line for each database you want to delete.

mikew
Offline
Joined: 09/25/2019 - 08:25

thanks Brian, apologies for the simple question. Wanted to make sure there wasnt a separate function for this.
 
 

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

All questions are good and welcome, hopefully I can answer some of them.