Skip to content

[Feature]: Cleaning recent Office lists #604

@duggytuxy

Description

@duggytuxy

Problem statement

Small suggestion:

Add a batch script to clear recently opened documents in Microsoft 365 - Office

Thank you for your attention.
Duggy Tuxy

Proposed solution

For example:

@echo off
rem ---------- Cleaning recent Office lists -------
set "OFFICE_RECENT=%AppData%\Microsoft\Office\Recent"

if exist "%OFFICE_RECENT%" (
echo.
echo Removing shortcuts to recent Office documents...
del /q "%OFFICE_RECENT%*.*"
if errorlevel 1 (
echo Error during deletion in %OFFICE_RECENT%
) else (
echo Folder %OFFICE_RECENT% clean.
)
) else (
echo.
echo The Office Recent Files folder does not exist :
echo %OFFICE_RECENT%
echo No files to delete.
)

Alternatives considered

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions