Ask the Community
Groups
Agent Procedures - deleteDirectory with "recursively delete" option fails on agents with Italian Windows installation - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>PROBLEM</strong></p> <p>When running an Agent Procedure with the <strong>deleteDirectory </strong>step and with the <strong>recursively delete</strong> option selected for a <strong>directory which contains sub-directories</strong>, the procedure will always fail on agents with<strong> Italian language Windows installation</strong>.</p> <p><strong>RESOLUTION</strong></p> <p>The following workaround is available for this problem.</p> <p>Replace the <strong>deleteDirectory</strong> step with <strong>ExecuteShellCommand </strong>and call the following command to delete the folder:</p> <blockquote class="blockquote"> <p><strong>rd /s /q "x:\folder"</strong></p> </blockquote> <p><span data-mce-mark="1">NOTE: Replace <strong>x:\folder</strong> with the actual folder path to be deleted.</span></p> <p><strong>This article will be updated when a permanent solution is available.</strong></p> <p><strong>APPLIES TO</strong></p> <p>All versions</p> </article> </main>