DeepSeek Harness Plugin: Permanently Delete Archived Sessions and Disk Logs

DeepSeek Harness (DSH)’s built-in archiving feature only hides sessions from the sidebar; their history and log files remain on disk. As sessions accumulate, disk usage continues to grow. The dsh-plugin-delete-archived plugin solves this problem by not only removing the archived status but also physically deleting the corresponding disk directories.

What is this

This is a management plugin maintained by Seelerc. Its core function is to thoroughly remove archived DeepSeek Harness sessions along with their history and log directories on disk. It retains the “restore” function as a remedial measure after deletion.

Core Features

  • Settings Page Management: Lists all archived sessions on the settings page, displaying disk paths, sizes, and archiving times. Supports batch operations, including batch restore and batch permanent delete. Default sorting is from oldest to newest by time, and all destructive operations require secondary confirmation.
  • Sidebar Menu Entry: Adds a “Permanently Delete” option to the “⋯” menu of archived sessions.
  • Agent Tools: Provides the delete_archived_sessions tool, which deletes a specified session via the session_id parameter, or deletes all archived sessions by omitting the parameter.
  • HTTP API: Provides the /api/archived-sessions/delete-batch endpoint, controlling the deletion scope via the sessionIds field; omitting this field deletes all.

Installation and Activation

Enter the following command in DSH Settings -> Plugins -> Install:

github:Seelerc/dsh-plugin-delete-archived

Please ensure that pnpm and git are installed in your system environment before installation. The desktop application comes with pnpm built-in, but standalone CLI mode requires manual configuration.

Typical Usage

  • Agent Tool Call:
    delete_archived_sessions
Deletes all archived sessions when called without arguments.
  • HTTP API Call:
    POST /api/archived-sessions/delete-batch
Omitting the `sessionIds` field in the body deletes all sessions.

Use Cases and Notes

  • Use Cases: Suitable for users who need to free up disk space or perform thorough data cleanup.
  • Irreversible: Deletion operations are irreversible and there is no recycle bin mechanism. Please ensure that the session is no longer needed.
  • Permissions: The plugin runs with the current DSH process permissions. It is recommended to check the source code and license before installation.

Summary

This plugin solves the cleanup challenge of archived sessions by physically erasing disk files. For more details, please visit the GitHub Repository or the Community Directory.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye