function deleteStackDir(stackDirList) {
  const route = moveToDirectory('modules');
  const subdirList = getPathsSubdir(route);
  stackDirList.forEach((stack) => {
    deleteDir(`${BASE_PATH}/packages/${stack}`);
    subdirList.forEach((dir) => {
      deleteDir(`${dir}/${stack}`);
    });
  });
}
Deletes directories for unused stacks

@param stackDirList - List of directories for unused stacks