title: Find: Cannot chdir to directory error message after deleting directories
body: <p>I am working on a project to automatically delete specific directories which are older than a day. I have got the following piece of code working:</p>
  
  <pre><code>find Directory/ -type d -name "Directory.To.Delete.*" -mtime +1 -exec rm -rf {} \;
  </code></pre>
  
  <p>It runs fine and deletes the directory (and contents) as expected, however it always ends with an error:</p>
  
  <pre>
  find: cannot chdir to Directory/ : No such file or directory
  </pre>
  
  <p>Is there a way to run this code without facing this error? I don't understand why this code is trying to chdir after deleting the directory.</p>