In W2k you can clear the page file by doing the follwing:
Click Start > Run > type: secpol.msc > Local Policies > Security Options
Double click on Clear virtual memory pagefile when system shuts down and disable it.
-OR-
Click Start > Run > type GPEDIT.MSC, click OK. Go to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options. In the right pane, locate: Shutdown: Clear virtual memory pagefile
However, if you clear the swap at shutdown, it takes about 10-20 seconds (or more) for the PC to shutdown.
For Win98, I wouldn't try deleting the swap. Although it will be recreated at next boot, it may result in some system instabilty. However, if you do want to delete it, you can restart restart in ms-dos mode, then type:
cd <drive>:
del *.swap
for example, if my swap is on E:, I would do:
cd e:
del *.swap
You can then save the above in a text file and save it as 'delswap.bat' you can then save it in C:\ then just simply type delswap (when in ms-dos mode). For example, your delswap.bat file would look somthing like this:
@ECHO OFF
ECHO Deleting swap file...
cd e:
del *.swap
ECHO swap file deleted!
Hope that helps.