{"id":27140404,"url":"https://github.com/alexm-sys/windows-file-cleanup-script","last_synced_at":"2026-05-18T19:34:31.569Z","repository":{"id":285957272,"uuid":"959887924","full_name":"alexm-sys/windows-file-cleanup-script","owner":"alexm-sys","description":"A reusable PowerShell script to clean up old files on Windows servers. Includes logging, folder exclusions, and simulation mode. Available in Spanish and English.","archived":false,"fork":false,"pushed_at":"2025-04-04T14:20:53.000Z","size":1109,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T00:49:29.952Z","etag":null,"topics":["automation","cleanup","cleanup-script","powershell","script","sysadmin","template","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexm-sys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-03T14:09:24.000Z","updated_at":"2025-04-04T14:21:40.000Z","dependencies_parsed_at":"2025-04-03T15:30:53.101Z","dependency_job_id":"93ca90e0-ef79-461c-8154-a028e576e042","html_url":"https://github.com/alexm-sys/windows-file-cleanup-script","commit_stats":null,"previous_names":["alexm-sys/windows-file-cleanup-script"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexm-sys%2Fwindows-file-cleanup-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexm-sys%2Fwindows-file-cleanup-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexm-sys%2Fwindows-file-cleanup-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexm-sys%2Fwindows-file-cleanup-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexm-sys","download_url":"https://codeload.github.com/alexm-sys/windows-file-cleanup-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137998,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cleanup","cleanup-script","powershell","script","sysadmin","template","windows"],"created_at":"2025-04-08T05:52:02.364Z","updated_at":"2026-05-18T19:34:26.544Z","avatar_url":"https://github.com/alexm-sys.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e 📘 **Este repositorio está disponible en español e inglés.**  \n\u003e 📗 **This repository is available in Spanish and English.**  \n\u003e  \n\u003e 🧾 **Ver versión en español más abajo.**  \n\u003e 🧾 **Scroll down for the English version.**\n\n\n\n# 🧹 Limpieza automática de archivos en servidores Windows / Windows File Cleanup Script\n\nEste repositorio contiene una plantilla de script PowerShell para automatizar la eliminación de archivos antiguos en servidores Windows.  \nThis repository contains a PowerShell script template to automate old file cleanup on Windows servers.\n\n---\n\n## 📋 Características / Features\n\n- 🕐 Elimina archivos según la antigüedad configurada / Deletes files based on configurable retention days  \n- 📂 Permite excluir carpetas / Allows excluding specific folders  \n- 🧪 Modo simulación disponible / Simulation mode available  \n- 📜 Crea logs de la limpieza / Generates daily cleanup logs  \n- 🔁 Elimina también logs antiguos (más de 1 año) / Also deletes logs older than 1 year  \n- 🌐 Disponible en español e inglés / Available in Spanish and English\n\n---\n\n## 🛠️ ¿Cómo usarlo? / How to use\n\n### 1. Copia los archivos / Copy the files\n\n```plaintext\n📁 /Scripts/\n│   ├── LimpiarFicheros.ps1      ← Español / Spanish\n│   ├── CleanupFiles.ps1         ← Inglés / English\n│   └── config.json              ← Archivo de configuración / Configuration file\n```\n\n### 2. Edita `config.json`\n\n```json\n{\n  \"Jobs\": [\n    {\n      \"Path\": \"C:\\Ruta\\AEvaluar\",\n      \"KeepDays\": 30,\n      \"ExcludeFolders\": [\"Importante\"]\n    }\n  ],\n  \"DryRun\": true,\n  \"LogDirectory\": \"C:\\LogsLimpieza\"\n}\n```\n\n- `\"DryRun\": true` = solo simula, no borra  \n- `\"DryRun\": false` = realiza el borrado real\n\n### 3. Ejecutar / Run manually\n\n```powershell\npowershell.exe -ExecutionPolicy Bypass -File \"C:\\Scripts\\LimpiarFicheros.ps1\"\n```\n\n---\n\n## 🧩 Archivos incluidos / Included files\n\n| Español (ES)         | Inglés (EN)         |\n|----------------------|---------------------|\n| `LimpiarFicheros.ps1`| `CleanupFiles.ps1`  |\n| `config.json`        | `config.json`       |\n| `README.md`          | `README_EN.md`      |\n| `LICENSE`            | `LICENSE`           |\n\n---\n\n## 🧪 Ejemplo de ejecución / Example Output\n\n```plaintext\n2025-04-02 08:29:32 - ===== INICIO DE LIMPIEZA =====\n2025-04-02 08:29:32 - Ruta: C:\\Users\\...\\Prueba\n2025-04-02 08:29:32 - [SIMULACIÓN] Eliminaría: ...\\archivo.log\n...\n2025-04-02 08:29:32 - ===== FIN DE LIMPIEZA =====\n```\n\n```plaintext\n2025-04-02 08:29:32 - ===== CLEANUP STARTED =====\n2025-04-02 08:29:32 - Path: C:\\Users\\...\\Test\n2025-04-02 08:29:32 - [SIMULATION] Would delete: ...\\file.log\n...\n2025-04-02 08:29:32 - ===== CLEANUP COMPLETED =====\n```\n\n---\n\n## 🪪 Licencia / License\n\nEste proyecto se publica bajo licencia MIT.  \nThis project is released under the MIT License.\n\n---\n\n## 🤝 Contribuciones / Contributions\n\nPull requests bienvenidos. Traducciones o mejoras también.  \nPull requests welcome. Translations or improvements appreciated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexm-sys%2Fwindows-file-cleanup-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexm-sys%2Fwindows-file-cleanup-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexm-sys%2Fwindows-file-cleanup-script/lists"}