How to force Windows to delete a directory that is in use?

0

I have a directory under C:\Users\myuser\.ssh and I need to delete it but Windows won't let me.

From Windows Explorer:

Folder In Use Screenshot

From a Cygwin shell:

myuser@mymachine /cygdrive/c/Users/myuser/.ssh
$ rm -rf id_rsa
rm: cannot remove `id_rsa': Device or resource busy

Any ideas how to force this deletion?

smeeb

Posted 2015-03-13T20:31:45.490

Reputation: 551

Question was closed 2015-03-13T20:36:41.040

Reboot once, and then delete it? Stop the process that's accessing it? What exactly have you tried already? – Ƭᴇcʜιᴇ007 – 2015-03-13T20:35:33.087

Perhaps also see: Windows 7: File In Use when deleting file

– Ƭᴇcʜιᴇ007 – 2015-03-13T20:37:19.233

No answers