How to delete Win98 to reinstall

I have a PC that was acting very strange.  So, I was going to try to delete windows and reinstall it.  But when I try the delete the windows file in DOS, I get the message: "access denied".
What can I do to gain access to the file to delete it?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tim, use your Windows 98 boot disk and boot to it.

Now type the following at the dos prompt:

deltree C:\Windows


PS: Would you rather do a fresh clean install though?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Timtow, a "C" grade? Thanks for nothing!
timtowAuthor Commented:
I'm new to this forum.  I'm sorry if it insulted you, but I thought a C was an average response.
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Was the advice "average" ? Did it resolve your problem?
timtowAuthor Commented:
It was "average" and it Did Not resolve the problem.
When I tried the deltree command i got "Invalid Command"
and I still get "access denied" when trying to delete windows.
Fine, then stats what should have been posted. In that way we could have resolved the issue before this.

Put the boot disk into the drive and use Find, Files and Folders and locate Deltree.exe and copy it to the floppy.

Now boot to the floppy again and try the procedure again.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.