function deleteDir(path) {
  try {
    shell.rm('-rf', path);
  } catch (e) {
    console.error(`The directory ${path} for the stack was not found`);
  }
}
Deletes the directory

@param path - The path of the directory