How to remove a directory when the cron job is within the child directory <p>I am new at Linux and I need to setup a script that after the work has been done using a cron job needs to delete the working directory. </p> <p>The directory that I am in straight after the job is :</p> <pre><code>working/dealer/network/db/scripts </code></pre> <p>I am doing this within the job to delete this whole path:</p> <pre><code>cd ~/working cd .. rm -rf working </code></pre> <p>As I am new I am sure there is a better way of deleting the working directory and its subfolders. Please can someone help with this?</p> <p>Thanks</p>