{"id":15587530,"url":"https://github.com/icyleaf/alipan-files-cleaner","last_synced_at":"2025-08-21T16:24:26.896Z","repository":{"id":231077773,"uuid":"780850693","full_name":"icyleaf/alipan-files-cleaner","owner":"icyleaf","description":"Alipan file cleaner for xiaoya?","archived":false,"fork":false,"pushed_at":"2024-04-16T05:48:03.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T15:25:41.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icyleaf.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}},"created_at":"2024-04-02T09:25:37.000Z","updated_at":"2024-04-02T10:09:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f0422d2-0c48-4367-b6e0-051810102288","html_url":"https://github.com/icyleaf/alipan-files-cleaner","commit_stats":null,"previous_names":["icyleaf/aliyun-files-cleaner"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/icyleaf/alipan-files-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyleaf%2Falipan-files-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyleaf%2Falipan-files-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyleaf%2Falipan-files-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyleaf%2Falipan-files-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icyleaf","download_url":"https://codeload.github.com/icyleaf/alipan-files-cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyleaf%2Falipan-files-cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271507221,"owners_count":24771823,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-02T22:02:03.085Z","updated_at":"2025-08-21T16:24:26.840Z","avatar_url":"https://github.com/icyleaf.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alipan files Cleaner\n\nIf you are using free account of alipan, it limited drive disk, you can use this script to force remove file(s) in given folder id.\n\n## Usage\n\n### Docker\n\n#### Running only once\n\n```bash\ndocker run -d --name aliyun-files-cleaner \\\n  -e ALIPAN_REFRESH_TOKEN=abcedfg \\\n  -e ALIPAN_FOLDER_ID=123456789 \\\n  -e LOGGER_LEVEL=info \\\n  gchr.io/icyleaf/aliyun-files-cleaner\n```\n\n#### Running in inverval mode (3600 seconds)\n\n```bash\ndocker run -d --name aliyun-files-cleaner \\\n  -e ALIPAN_REFRESH_TOKEN=abcedfg \\\n  -e ALIPAN_FOLDER_ID=123456789 \\\n  -e ALIPAN_RUNNER_INTERVAL=3600 \\\n  -e LOGGER_LEVEL=info \\\n  gchr.io/icyleaf/aliyun-files-cleaner\n```\n\n#### Running DRY mode (not delete files)\n\n```bash\ndocker run -d --name aliyun-files-cleaner \\\n  -e ALIPAN_REFRESH_TOKEN=abcedfg \\\n  -e ALIPAN_FOLDER_ID=123456789 \\\n  -e DRY_MODE=true \\\n  -e LOGGER_LEVEL=info \\\n  gchr.io/icyleaf/aliyun-files-cleaner\n```\n\n## Output\n\n### All good\n\n```\nI, [2024-04-02T17:08:18.200467 #13058]  INFO -- : Starting alipan resources runner ...\nI, [2024-04-02T17:08:18.200518 #13058]  INFO -- : cli v0.1.0, interval: 300 seconds, dry_mode: true\nI, [2024-04-02T17:08:18.592409 #13058]  INFO -- : Disk information total: 102.9 GB, used: 23.06 GB, free: 79.84 GB\nI, [2024-04-02T17:08:18.592463 #13058]  INFO -- : Fetching files from drive_id 123456789\nI, [2024-04-02T17:08:18.701069 #13058]  INFO -- : Prepare to delete 1 file(s) ...\nI, [2024-04-02T17:08:18.701121 #13058]  INFO -- : Deleting file: Taylor.Swift.Reputation.Stadium.Tour.2018.2160p.NF.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265-CRFW.mkv (17.44 GB)\nI, [2024-04-02T17:08:18.815700 #13058]  INFO -- : Result: cleaned disk 17.44 GB.\nI, [2024-04-02T17:08:18.815753 #13058]  INFO -- : Waiting next loop ... (300 seconds)\n```\n\n### Found issue\n\n```\nI, [2024-04-02T17:08:18.200467 #13058]  INFO -- : Starting alipan resources runner ...\nI, [2024-04-02T17:08:18.200518 #13058]  INFO -- : cli v0.1.0, interval: 300 seconds, dry_mode: true\nE, [2024-04-02T16:39:46.200284 #29558] ERROR -- : Invalid refresh token, Try to fetch a new one:  https://aliyundriver-refresh-token.vercel.app/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyleaf%2Falipan-files-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficyleaf%2Falipan-files-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyleaf%2Falipan-files-cleaner/lists"}