# myraas/remote-disk-cleanup architecture

> Architecture diagram of the GitHub repository myraas/remote-disk-cleanup, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/myraas/remote-disk-cleanup
- Repository: https://github.com/myraas/remote-disk-cleanup

## Overview

Remote-Disk-Cleanup is a PowerShell utility for cleaning temporary files and caches on a local or remote Windows computer. An administrator runs the script, selects execution and logging options, and supplies remote-computer credentials when needed. The script performs the documented cleanup tasks, optionally repairs WMI, and logs the work and recovered space. The repository contains only the script and README; relationships below are based on README documentation, not inspected source excerpts.

Main entry points: [`Remote-Disk-Cleanup.ps1`](https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1) (Cleanup script)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_administrator(("Administrator"))
node_cleanup_script["Cleanup script"]
node_target_computer["Target computer"]
node_temp_cleanup["Profile temp cleanup"]
node_browser_cleanup["Browser cache cleanup"]
node_disk_cleanup["Disk Cleanup"]
node_recycle_cleanup["Recycle Bin cleanup"]
node_wmi_repair["WMI repair"]
node_cleanup_report["Logs and recovered space"]

node_administrator -->|"runs"| node_cleanup_script
node_administrator -->|"sets options"| node_cleanup_script
node_cleanup_script -->|"runs locally or remotely"| node_target_computer
node_cleanup_script -->|"cleans profiles"| node_temp_cleanup
node_cleanup_script -->|"cleans caches"| node_browser_cleanup
node_cleanup_script -->|"runs"| node_disk_cleanup
node_cleanup_script -->|"empties old contents"| node_recycle_cleanup
node_cleanup_script -->|"optionally repairs"| node_wmi_repair
node_cleanup_script -->|"logs and reports"| node_cleanup_report

click node_cleanup_script "https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1"
click node_temp_cleanup "https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1"
click node_browser_cleanup "https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1"
click node_disk_cleanup "https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1"
click node_recycle_cleanup "https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1"
click node_wmi_repair "https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1"
click node_cleanup_report "https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_administrator,node_target_computer toneIndigo
class node_cleanup_script,node_temp_cleanup,node_disk_cleanup,node_recycle_cleanup,node_wmi_repair,node_cleanup_report toneTeal
class node_browser_cleanup toneAmber
```

## Components

### Other components

- **Administrator**
- [Cleanup script](https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1): `Remote-Disk-Cleanup.ps1`
- **Target computer**
- [Profile temp cleanup](https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1): `Remote-Disk-Cleanup.ps1`
- [Browser cache cleanup](https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1): `Remote-Disk-Cleanup.ps1`
- [Disk Cleanup](https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1): `Remote-Disk-Cleanup.ps1`
- [Recycle Bin cleanup](https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1): `Remote-Disk-Cleanup.ps1`
- [WMI repair](https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1): `Remote-Disk-Cleanup.ps1`
- [Logs and recovered space](https://github.com/myraas/remote-disk-cleanup/blob/master/Remote-Disk-Cleanup.ps1): `Remote-Disk-Cleanup.ps1`

## Connections

- Administrator → Cleanup script: runs (evidence: `README.md`)
- Administrator → Cleanup script: sets options (evidence: `README.md`)
- Cleanup script → Target computer: runs locally or remotely (evidence: `README.md`)
- Cleanup script → Profile temp cleanup: cleans profiles (evidence: `README.md`)
- Cleanup script → Browser cache cleanup: cleans caches (evidence: `README.md`)
- Cleanup script → Disk Cleanup: runs (evidence: `README.md`)
- Cleanup script → Recycle Bin cleanup: empties old contents (evidence: `README.md`)
- Cleanup script → WMI repair: optionally repairs (evidence: `README.md`)
- Cleanup script → Logs and recovered space: logs and reports (evidence: `README.md`)
