iversonk56044 / gss-scripts

Automatically exported from code.google.com/p/gss-scripts
0 stars 0 forks source link

Have a script which is able to delete empty folders #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The delclient.wsf script allows the deletion of clients which are
referenced by other items in the console database, removing them
automatically (since the existing GSS console UI doesn't cascade deletes
this way).

However, since tasks and reports can also target folders and not just
machines, the same UI problem of not allowing cascaded deletes also can
block the removal of folders and it would be useful to have a script for this.

Original issue reported on code.google.com by nigel.bree@gmail.com on 13 Jan 2009 at 6:09

GoogleCodeExporter commented 8 years ago
I have created a new script for this purpose to the Vista branch (which I need 
to
merge back into "trunk" soonish):
  http://code.google.com/p/gss-scripts/source/browse/branches/vista/delfolders.wsf

It only works with empty folders, and removes them along with editing any tasks 
that
referred to the folder so that it no longer does.

In addition, this script tries to work around a design defect in the GSS2.5 
console
UI where "machine decommission" tasks that referred to a machine folder would 
be able
to live in the database forever, but were not visible in the task UI. This 
meant that
they could block the removal of an empty folder, and since they didn't exist in 
the
UI once in this condition the folders could never be deleted.

Original comment by nigel.bree@gmail.com on 19 Jan 2009 at 3:28