how to delete folder using terminal linux code example Example 1: remove full dir rm -r mydir Example 2: linux delete subfolders rm -rf /config/filegroups/*/