{"id":17999609,"url":"https://github.com/ozum/rm-up-cli","last_synced_at":"2025-04-04T07:20:27.895Z","repository":{"id":141712851,"uuid":"331679480","full_name":"ozum/rm-up-cli","owner":"ozum","description":"Delete files or empty directories and their empty parents from bottom to up.","archived":false,"fork":false,"pushed_at":"2021-02-11T11:40:56.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T23:34:58.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ozum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-01-21T16:02:44.000Z","updated_at":"2021-02-11T11:39:31.000Z","dependencies_parsed_at":"2023-06-09T17:15:18.924Z","dependency_job_id":null,"html_url":"https://github.com/ozum/rm-up-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozum%2Frm-up-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozum%2Frm-up-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozum%2Frm-up-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozum%2Frm-up-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozum","download_url":"https://codeload.github.com/ozum/rm-up-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135644,"owners_count":20889522,"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":[],"created_at":"2024-10-29T22:13:53.641Z","updated_at":"2025-04-04T07:20:27.877Z","avatar_url":"https://github.com/ozum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rm-up-cli\n\nDelete files or empty directories and their empty parents from bottom to up.\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Installation](#installation)\n- [Synopsis](#synopsis)\n- [Details](#details)\n- [Related](#related)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n# Installation\n\n```sh\n$ npm install -g rm-up\n```\n\n# Synopsis\n\nInstall globally to access rm-up from everywhere.\n\n```sh\n$ rm-up generated/util/math\n```\n\n```sh\n$ rm-up generated/util/math generated/util/helper --cwd /path/to/project\n```\n\n```sh\n$ rm-up --help\n```\n\n# Details\n\nDeletes files or empty directories and their empty parents from bottom to up. First deletes given files or directories, then checks whether their parent directories are empty and deletes them if empty. Then checks parent's parents and so on.\n\nIt's direction is reverse of rm -rf or deltree command.\n\nIgnores system junk files such as .DS_Store and Thumbs.db.\n\n```\n       USAGE\n\n  $ rm-up [options] \u003cpath\u003e...\n\n     ARGUMENTS\n\n  \u003cpath\u003e... (optional) Files or directories to delete and search their empty parent directories up. If not given, cwd is used.\n\n      OPTIONS\n\n  -c --cwd            Set the current working directory for relative paths.\n  -f --force          Ignore errors if paths do not exist.\n  -s --stop           Path to stop searching empty directories up. 'stop' dir is excluded and not deleted.\n  -d --dry            Dry run without deleting any files.\n  -l --log            Show logging.\n  -v --verbose        Show extra infromation.\n     --deleteInitial  Delete target path (bottom directory) even it is non-empty directory. For example even if 'c' directory of 'a/b/c' has some files in it, 'c' will be deleted.\n     --help           Show help.\n     --version        Show version.\n\n      EXAMPLES\n\n  $ rm-up --stop . --cwd /path/to/project generated/lib/math generated/util/helper\n\n  Using above command deletes following directories if they are empty:\n    /path/to/project/generated/lib/math\n    /path/to/project/generated/lib\n    /path/to/project/generated\n    /path/to/project/generated/util/helper\n    /path/to/project/generated/util\n    /path/to/project/generated\n```\n\nPlease see [rm-up](https://github.com/ozum/rm-up) for details.\n\n# Related\n\n- [rm-up](https://github.com/ozum/rm-up): API for this CLI.\n\n\u003c!-- usage --\u003e\n\n\u003c!-- commands --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozum%2Frm-up-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozum%2Frm-up-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozum%2Frm-up-cli/lists"}