<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot Delete a file located in a CIFS share in Network and Storage Protocols</title>
    <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37262#M3417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the path that it came back with &lt;BR /&gt; /vol/ese_admin_share/ES Admin/Projects/PSTools Upgrade/PSTools - Phase4.vsd &lt;BR /&gt;So I tried this command &lt;BR /&gt; lock break lock break -f /vol/ese_admin_share/ES Admin/Projects/PSTools Upgrade/PSTools - Phase4.vsd&lt;BR /&gt;It came back with this error Error: &lt;BR /&gt; Invalid option Admin/Projects/PSTools&lt;/P&gt;&lt;P&gt;It seems to be having an issue with the space in the path I tred to inclose it with ' but that did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Mar 2010 14:00:13 GMT</pubDate>
    <dc:creator>curtissw531</dc:creator>
    <dc:date>2010-03-10T14:00:13Z</dc:date>
    <item>
      <title>Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37216#M3401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a file on our NetApp that we cannot delete it says that the file is in use. When we check using computer management it does not list that files as being in use. The file is located on A CIFIS share. How can we get the file unlocked, deleted, or what process has it open?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:17:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37216#M3401</guid>
      <dc:creator>curtissw531</dc:creator>
      <dc:date>2025-06-05T07:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37221#M3403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;netapp&amp;gt; cifs sessions *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(note the '*'). See if it shows a cifs session with your file open.&amp;nbsp; You could then use cifs terminate &amp;lt;session&amp;gt; to kill off that particular session if necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Mar 2010 15:57:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37221#M3403</guid>
      <dc:creator>adamfox</dc:creator>
      <dc:date>2010-03-09T15:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37226#M3405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that as well but the files still does not show up as in use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Mar 2010 16:32:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37226#M3405</guid>
      <dc:creator>curtissw531</dc:creator>
      <dc:date>2010-03-09T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37231#M3407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not a folder is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Mar 2010 16:39:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37231#M3407</guid>
      <dc:creator>adamfox</dc:creator>
      <dc:date>2010-03-09T16:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37235#M3409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Arial&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #333333; font-size: 10pt; mso-fareast-font-family: 'Times New Roman';"&gt;No it’s just a file. In fact even trying to bring up the properties of the file take a very long time.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Mar 2010 16:43:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37235#M3409</guid>
      <dc:creator>curtissw531</dc:creator>
      <dc:date>2010-03-09T16:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37238#M3411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps it is visible with the lock status command. E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; lock status -f -p cifs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If found you can break the lock with the lock break command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 07:14:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37238#M3411</guid>
      <dc:creator>pascalduk</dc:creator>
      <dc:date>2010-03-10T07:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37247#M3414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tired to issue this command lock break -f phase4.vsd and it says no locks to break. Even though when I issues the lock ststus command the file shows up in the list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 12:58:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37247#M3414</guid>
      <dc:creator>curtissw531</dc:creator>
      <dc:date>2010-03-10T12:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37252#M3415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use a 3rd party tool to force kill the lock?&amp;nbsp; ofl.exe is what I use in scenarios like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 13:23:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37252#M3415</guid>
      <dc:creator>arram715</dc:creator>
      <dc:date>2010-03-10T13:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37257#M3416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You also need to specify the full path name of the file, including volume and qtree. The full path is also listed in the lock status output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 13:43:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37257#M3416</guid>
      <dc:creator>pascalduk</dc:creator>
      <dc:date>2010-03-10T13:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37262#M3417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the path that it came back with &lt;BR /&gt; /vol/ese_admin_share/ES Admin/Projects/PSTools Upgrade/PSTools - Phase4.vsd &lt;BR /&gt;So I tried this command &lt;BR /&gt; lock break lock break -f /vol/ese_admin_share/ES Admin/Projects/PSTools Upgrade/PSTools - Phase4.vsd&lt;BR /&gt;It came back with this error Error: &lt;BR /&gt; Invalid option Admin/Projects/PSTools&lt;/P&gt;&lt;P&gt;It seems to be having an issue with the space in the path I tred to inclose it with ' but that did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 14:00:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37262#M3417</guid>
      <dc:creator>curtissw531</dc:creator>
      <dc:date>2010-03-10T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37265#M3418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help we finaly fix this buy using the using the command below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Calibri&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #1f497d; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt;We were able to fix this by issuing this command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Calibri&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #1f497d; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoPlainText" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Consolas; "&gt;Lock break -o userid -p cifs&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Calibri&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #1f497d; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Calibri&amp;amp;quot;, &amp;amp;quot;sans-serif&amp;amp;quot;; color: #1f497d; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-themecolor: dark2;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 15:26:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37265#M3418</guid>
      <dc:creator>curtissw531</dc:creator>
      <dc:date>2010-03-10T15:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37270#M3420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a sample on how to initiate the commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Filer Name&amp;gt; lock break -h 10.50.x.x -p cifs&lt;BR /&gt;Filer Name&amp;gt; lock break -h 10.50.x.x -p cifs&lt;BR /&gt;Filer Name&amp;gt; lock break -h 10.60.x.x -p cifs&lt;BR /&gt;Filer Name&amp;gt; lock break -h 10.50.x.x -p cifs&lt;BR /&gt;Filer Name&amp;gt; lock break -h 1060.x.x -p cifs&lt;BR /&gt;Filer Name&amp;gt; lock break -h 10.60.x.x -p cifs&lt;/P&gt;&lt;P&gt;Filer Name&amp;gt; lock break -o username -p cifs&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Filer Name&amp;gt; lock status -f -p cifs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 13:55:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37270#M3420</guid>
      <dc:creator>seftekhari</dc:creator>
      <dc:date>2011-04-06T13:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37275#M3422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We ran into the same issue and the lock break command worked like a charm..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We first found the lock by running:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filer02&amp;gt; lock status -p cifs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drilled down on it and ran this on the host IP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filer02&amp;gt; lock status -h &amp;lt;ip address&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Broke the lock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filer02&amp;gt;lock break -h &amp;lt;ip address&amp;gt; -p cifs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Verified lock was gone:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filer02&amp;gt; lock status -h &amp;lt;ip address&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 04:25:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37275#M3422</guid>
      <dc:creator>garciam99</dc:creator>
      <dc:date>2011-04-08T04:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete a file located in a CIFS share</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37280#M3424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Filer Name&amp;gt; lock break -h X.X.X.X -p cifs worked brilliantly for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a note Even though the locked file had an ip address associated with it, that was the one the client had during the time of the lock being created, since then DHCP had regiven out the IP to another client device. I managed to close the lock on the correct file as well as someone elses connection. May be worth doing these at night to avoid disruption for other users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 12:54:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Cannot-Delete-a-file-located-in-a-CIFS-share/m-p/37280#M3424</guid>
      <dc:creator>stuart_tormey</dc:creator>
      <dc:date>2012-10-23T12:54:39Z</dc:date>
    </item>
  </channel>
</rss>

