Drop the entire scrollback subtree for a workspace (workspace deletion).
(wsId: string)
| 74 | |
| 75 | /** Drop the entire scrollback subtree for a workspace (workspace deletion). */ |
| 76 | async removeAllFor(wsId: string): Promise<void> { |
| 77 | try { |
| 78 | await rm(join(this.dir, wsId), { recursive: true, force: true }); |
| 79 | } catch (err) { |
| 80 | this.logger.warn('scrollback.remove_all_failed', { wsId, err }); |
| 81 | } |
| 82 | } |
| 83 | } |