void tsmRemoveServerSetsFromDatabase ( TsmDatabase *database, TsmServer *server, NameUrlIds *keep_sets ) Removes all sets for a server from database
Removes all sets for a server from database.This function will take a TsmDatabase and a server name. It will then check every instance of every dataset in the database. Any instances that are found that describe datasets on the specifed server are removed from the database. If a dataset is reduced to having no instances as a result of this, then that dataset is also removed from the database. The same is done to all of the map and model entries in the database.
The NameUrlIds parameter contains a list of (name, url, setId) tuples that define datasets to be kept in the database. If a database instance is found to match any entry in this list, then that instance is kept in the database and is not deleted. A NULL value can be passed here is you have no URLs that you want to keep for the specified server.