Skip to content
dsh.fish
Bundle

dsh-command-delete

Slash commands to delete sessions and workspaces (projects) in DSH

Source
wang122818
stars
1 stars
License
MIT
Updated
Updated 6 days ago

Readme

# dsh-command-delete

DSH commands for removing a project registration and deleting a persisted session.

## Web UI

The Web bundle adds a trash icon in the sidebar footer. It opens a management panel with project and session lists. Every destructive action has a confirmation dialog.

Project deletion removes only the DSH workspace registration; the directory and session logs remain. Session deletion permanently removes the persisted session log and refuses live/open sessions.

## Commands

```text
/delete-project <workspaceId>
/delete-workspace <workspaceId>
/delete-session <sessionId>
```

`/delete-workspace` is an alias for `/delete-project`.

Project deletion uses DSH's workspace registry. It removes only the DSH project/workspace registration. The project directory and all session logs remain on disk.

Session deletion removes the persisted JSONL session directory. It refuses to remove a session that is still owned by a live Agent. The current DSH release does not expose a public session-delete lifecycle, so live/open sessions are intentionally not deleted by this plugin.

## Install from this checkout

From the directory that contains this package:

```powershell
dsh plugin --profile default add .
```

Use the profile name you normally run with instead of `default` when needed. Restart DSH after installing the bundle.

With no id, each command prints the available IDs:

```text
/delete-project
/delete-session
```

Install

dsh plugin --profile web add github:wang122818/dsh-command-delete

Profile: web

  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source