<?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: Delete a non-empty Folder in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681182#M36927</link>
    <description>&lt;P&gt;The FDELETE function will do what you want:&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0h945u5r0cv6yn1u6qs35hiqt9t.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FDELETE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Sep 2020 00:04:56 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2020-09-03T00:04:56Z</dc:date>
    <item>
      <title>Delete a non-empty Folder</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681179#M36925</link>
      <description>Hello guys! I am new utilising SAS Enterprise Guide and I have been frustrating over this,&lt;BR /&gt;&lt;BR /&gt;My Libraries and OUTPUT folders have been created this way:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;options dlcreatedir;&lt;BR /&gt;libname OUTPUT "&amp;amp;CARPETA.\&amp;amp;SERIE.";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;where, &amp;amp;CARPETA is a path and &amp;amp;SERIE is the name of the FOLDER.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After all the regressions are done, the FOLDER called 'SERIE' contains:&lt;BR /&gt;&lt;BR /&gt;- SAS tables; aaa.sas&lt;BR /&gt;- Excel file; bbb.xlsx&lt;BR /&gt;&lt;BR /&gt;I want to DELETE the FOLDER 'SERIE' completely.&lt;BR /&gt;&lt;BR /&gt;I have tried deleting what is inside first, but I just managed to delete the SAS tables only. Is there a way to delete the FOLDER itself at once? In case it is not posible, how can I delete the excel file? Please!!!&lt;BR /&gt;&lt;BR /&gt;Greetings!</description>
      <pubDate>Wed, 02 Sep 2020 23:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681179#M36925</guid>
      <dc:creator>PReintsch</dc:creator>
      <dc:date>2020-09-02T23:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a non-empty Folder</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681182#M36927</link>
      <description>&lt;P&gt;The FDELETE function will do what you want:&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0h945u5r0cv6yn1u6qs35hiqt9t.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FDELETE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 00:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681182#M36927</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-09-03T00:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a non-empty Folder</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681268#M36930</link>
      <description>&lt;P&gt;This is best done by using the appropriate operating system command with the necessary options. Since you seem to have Windows underneath your SAS, use "del".&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "del '&amp;amp;CARPETA.\&amp;amp;SERIE.' /f 2&amp;gt;&amp;amp;1";

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The single quotes might be necessary if blanks appear in the path.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 09:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681268#M36930</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-03T09:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a non-empty Folder</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681350#M36932</link>
      <description>&lt;P&gt;FDELETE to delete files and an empty folder.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0h945u5r0cv6yn1u6qs35hiqt9t.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n17zq8fabdl8tbn1v2qvpytktbhj"&gt;https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0h945u5r0cv6yn1u6qs35hiqt9t.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n17zq8fabdl8tbn1v2qvpytktbhj&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Macro to recursively delete files using FDELETE&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sascommunity.org/mwiki/index.php?title=Recursively_Delete_Files" target="_blank"&gt;https://www.sascommunity.org/mwiki/index.php?title=Recursively_Delete_Files&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or use XCMD and a command line statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/delete-a-folder-directory-and-all-files-on-it/td-p/584870" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/delete-a-folder-directory-and-all-files-on-it/td-p/584870&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/344613"&gt;@PReintsch&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hello guys! I am new utilising SAS Enterprise Guide and I have been frustrating over this,&lt;BR /&gt;&lt;BR /&gt;My Libraries and OUTPUT folders have been created this way:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;options dlcreatedir;&lt;BR /&gt;libname OUTPUT "&amp;amp;CARPETA.\&amp;amp;SERIE.";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;where, &amp;amp;CARPETA is a path and &amp;amp;SERIE is the name of the FOLDER.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After all the regressions are done, the FOLDER called 'SERIE' contains:&lt;BR /&gt;&lt;BR /&gt;- SAS tables; aaa.sas&lt;BR /&gt;- Excel file; bbb.xlsx&lt;BR /&gt;&lt;BR /&gt;I want to DELETE the FOLDER 'SERIE' completely.&lt;BR /&gt;&lt;BR /&gt;I have tried deleting what is inside first, but I just managed to delete the SAS tables only. Is there a way to delete the FOLDER itself at once? In case it is not posible, how can I delete the excel file? Please!!!&lt;BR /&gt;&lt;BR /&gt;Greetings!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 14:25:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681350#M36932</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-03T14:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a non-empty Folder</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681439#M36937</link>
      <description>&lt;P&gt;Thanks for the detailed answer Kurt. However I got 3 Error messages, from which these two are very particular:&lt;/P&gt;&lt;P&gt;ERROR: Insufficient authorization to access PIPE.&lt;/P&gt;&lt;P&gt;ERROR: No logical assign for filename OSCMD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 17:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681439#M36937</guid>
      <dc:creator>PReintsch</dc:creator>
      <dc:date>2020-09-03T17:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a non-empty Folder</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681448#M36938</link>
      <description>&lt;P&gt;This means that, sadly, your SAS administrator has not enabled the XCMD system option. Either you get him/her to enable that, or you use the macro linked to by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 18:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Delete-a-non-empty-Folder/m-p/681448#M36938</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-03T18:06:05Z</dc:date>
    </item>
  </channel>
</rss>

