<?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: DCL - DELETE in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060160#M24541</link>
    <description>Sentosa,&lt;BR /&gt;&lt;BR /&gt;  DELETE has a design flaw when deleting anything more than a few files in a single directory. It does everything backwards. First, directories are deleted top down, which is analogous to attempting to demolish a building from the ground floor upwards. Second, files within directories are deleted in A to Z order, which is the most pessimal case for the way directories are organised, and how deletions are managed. They really should be done Z-A.&lt;BR /&gt;&lt;BR /&gt;If you're on ODS-2 (limited directory depth) and don't mind extraneous error messages, try:&lt;BR /&gt;&lt;BR /&gt;$ set protection=(w:d) [yourdir...]*.dir&lt;BR /&gt;$ delete [yourdir...]*.*;*,;*,;*,;*,;*,;*,;*,;*,;*,;*,;*,;*&lt;BR /&gt;$ set protection=(w:d) yourdir.dir&lt;BR /&gt;$ delete yourdir.dir;&lt;BR /&gt;&lt;BR /&gt;but this may take a very long time if there are many files.&lt;BR /&gt;&lt;BR /&gt;The best solution for deleting entire directories is definitely DFU.&lt;BR /&gt;&lt;BR /&gt;There's some further discussion at:&lt;BR /&gt; &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=625667" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=625667&lt;/A&gt; &lt;BR /&gt;</description>
    <pubDate>Thu, 26 Jul 2007 23:51:14 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2007-07-26T23:51:14Z</dc:date>
    <item>
      <title>DCL - DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060157#M24538</link>
      <description>Dear ALL,&lt;BR /&gt;&lt;BR /&gt;I need to delete the directory in batch mode but the target directory contains many sub-directories &amp;amp; files.&lt;BR /&gt;&lt;BR /&gt;Do anyone know the effective ways to do in DCL?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Sentosa</description>
      <pubDate>Thu, 26 Jul 2007 21:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060157#M24538</guid>
      <dc:creator>Sentosa</dc:creator>
      <dc:date>2007-07-26T21:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: DCL - DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060158#M24539</link>
      <description>The Forum Search facity found this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1101875" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1101875&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It has several ways.&lt;BR /&gt;&lt;BR /&gt;If you really want to delete everything in the directory, the fastest way is the DFU utility.  But you will need to install that.&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Thu, 26 Jul 2007 21:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060158#M24539</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-07-26T21:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: DCL - DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060159#M24540</link>
      <description>Sentosa,&lt;BR /&gt;&lt;BR /&gt;There are at least two ways of doing this. The first, albeit not the most aesthetically pleasing way is to issue the DELETE [DIRECTORY_NAME...]*.*;* command repeatedly until you get the error (in $STATUS) indicating that there were no files. The highest level directory can then be deleted explicitly.&lt;BR /&gt;&lt;BR /&gt;A somewhat more appealing solution is to use the F$SEARCH lexical to identify all of the data files to walk the subdirectory tree, deleting each subdirectory in turn.&lt;BR /&gt;&lt;BR /&gt;The first method is very easy to do, the second requires more coding.&lt;BR /&gt;&lt;BR /&gt;In both cases, I strongly recommend extensive testing (preferably in a safe environment from a non-privileged, non-system UIC) to avoid the possibility of accidents.&lt;BR /&gt;&lt;BR /&gt;I hope that the above is helpful.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Thu, 26 Jul 2007 22:25:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060159#M24540</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2007-07-26T22:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: DCL - DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060160#M24541</link>
      <description>Sentosa,&lt;BR /&gt;&lt;BR /&gt;  DELETE has a design flaw when deleting anything more than a few files in a single directory. It does everything backwards. First, directories are deleted top down, which is analogous to attempting to demolish a building from the ground floor upwards. Second, files within directories are deleted in A to Z order, which is the most pessimal case for the way directories are organised, and how deletions are managed. They really should be done Z-A.&lt;BR /&gt;&lt;BR /&gt;If you're on ODS-2 (limited directory depth) and don't mind extraneous error messages, try:&lt;BR /&gt;&lt;BR /&gt;$ set protection=(w:d) [yourdir...]*.dir&lt;BR /&gt;$ delete [yourdir...]*.*;*,;*,;*,;*,;*,;*,;*,;*,;*,;*,;*,;*&lt;BR /&gt;$ set protection=(w:d) yourdir.dir&lt;BR /&gt;$ delete yourdir.dir;&lt;BR /&gt;&lt;BR /&gt;but this may take a very long time if there are many files.&lt;BR /&gt;&lt;BR /&gt;The best solution for deleting entire directories is definitely DFU.&lt;BR /&gt;&lt;BR /&gt;There's some further discussion at:&lt;BR /&gt; &lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=625667" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=625667&lt;/A&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 23:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060160#M24541</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-07-26T23:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: DCL - DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060161#M24542</link>
      <description>There is a utility DELTREE on the Freeware CD (8.0). It will remove a whole directory tree - including the directory itself) in one command. Use with care - VMS has no 'undelete' so make a good backup first)&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jul 2007 01:34:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060161#M24542</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2007-07-27T01:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: DCL - DELETE</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060162#M24543</link>
      <description>Thanks</description>
      <pubDate>Fri, 27 Jul 2007 01:39:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-delete/m-p/5060162#M24543</guid>
      <dc:creator>Sentosa</dc:creator>
      <dc:date>2007-07-27T01:39:44Z</dc:date>
    </item>
  </channel>
</rss>

