https://github.com/powershelllibrary/windowsdiskcleanup
https://github.com/powershelllibrary/windowsdiskcleanup
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/powershelllibrary/windowsdiskcleanup
- Owner: PowerShellLibrary
- License: mit
- Created: 2025-03-12T16:20:24.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-28T20:35:30.000Z (12 months ago)
- Last Synced: 2025-07-04T06:08:34.480Z (8 months ago)
- Language: PowerShell
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# WindowsDiskCleanup
[](https://www.powershellgallery.com/packages/WindowsDiskCleanup)
[](LICENSE)
[](https://github.com/PowerShellLibrary/WindowsDiskCleanup/actions/workflows/test.yml)
PowerShell module for cleaning disk space.
To learn about available cmdlets head to: [**docs/Public Cmdlets**](doc/Public-Cmdlets.md)
## Usage examples
```powershell
# Install the module (PowerShell 5.1+ / PowerShell 7+)
Install-Module -Name WindowsDiskCleanup -Scope CurrentUser
# Import the module into the current session
Import-Module WindowsDiskCleanup
# List all commands provided by the module
Get-Command -Module WindowsDiskCleanup
# Dry run - show which IIS log files would be removed older than 100 days
Remove-IISLog -Days 100 -DryRun
```
Alternatively, you can run complete cleanup with default settings:
```powershell
cls;.\main.ps1 -DryRun
```
## License
[MIT License](LICENSE.md) © Alan Płócieniak