When you have problems with your OS/2 session you may restart your computer and boot to a maintenance desktop in order to be able to rebuild the desktop that is giving the problems. After you have done this you may find that you now have several desktops folders stored on your system, the new one you are using and one or more old broken ones. Trying to delete these surplus desktops from a view of the drive on the desktop doesn't work because the desktop is flagged as not deleteable.
Even though you can't delete them from the graphical interface, you can still delete the unwanted desktops from the OS/2 command line. Before you go to the command line to delete the unwanted desktops, first look at a tree view of the drive where you installed OS/2 to see which desktop you are actually using (its the one with the shaded background). Open the properties notebook and make a not of the physical name of the desktop. This is the desktop that we don't want to delete.
So now start up an OS/2 command line session and switch to the root directory of the drive where you installed OS/2. If you installed OS/2 on the D drive you can get there by typing d:&cd \.
Now type dir and identify the unwanted desktops. You now have a choice. You can delete them the hard way by going into each folder within the unwanted desktop, using dir to check the contents of the folder and going into any lower level folders to check their content in turn, using del * to delete the contents of the folder then backing up a level to delete the folder itself using the rd command, until you have the desktop folder itself empty and able to delete it. Alternatively, you can do it the easy way using a program called delpath that allows you to delete entire folders from the command line with a single command.
Please note that although a copy of the DELPATH program can be downloaded from here, the program was not written by us and we accept no responsibility for its use. You may find a more recent version of the program elsewhere on the internet. The documentation supplied by the program author is included with the program.
This article written by Stephen Chapman, Felgall Pty Ltd.