{"id":17866191,"url":"https://github.com/xt0rted/dotnet-rimraf","last_synced_at":"2025-08-21T23:14:33.850Z","repository":{"id":37254843,"uuid":"473872128","full_name":"xt0rted/dotnet-rimraf","owner":"xt0rted","description":"Deep deletion command for .NET (like rm -rf)","archived":false,"fork":false,"pushed_at":"2025-03-12T12:06:47.000Z","size":461,"stargazers_count":3,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T22:06:37.724Z","etag":null,"topics":["build-tool","dotnet","dotnet-tool","dotnet-tools","rimraf","rm-rf"],"latest_commit_sha":null,"homepage":"","language":"C#","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/xt0rted.png","metadata":{"funding":{"github":"xt0rted","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null},"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-03-25T04:48:58.000Z","updated_at":"2025-02-18T01:52:04.000Z","dependencies_parsed_at":"2024-01-15T20:59:29.006Z","dependency_job_id":"a61603fc-9f65-4f45-bdff-39185215360a","html_url":"https://github.com/xt0rted/dotnet-rimraf","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/xt0rted%2Fdotnet-rimraf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fdotnet-rimraf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fdotnet-rimraf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xt0rted%2Fdotnet-rimraf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xt0rted","download_url":"https://codeload.github.com/xt0rted/dotnet-rimraf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745651,"owners_count":20503043,"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":["build-tool","dotnet","dotnet-tool","dotnet-tools","rimraf","rm-rf"],"created_at":"2024-10-28T09:28:55.679Z","updated_at":"2025-03-21T05:30:46.567Z","avatar_url":"https://github.com/xt0rted.png","language":"C#","funding_links":["https://github.com/sponsors/xt0rted"],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"assets/icon.svg\" align=\"left\" height=\"45\"\u003e dotnet-rimraf\n\n[![CI build status](https://github.com/xt0rted/dotnet-rimraf/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/xt0rted/dotnet-rimraf/actions/workflows/ci.yml)\n[![NuGet Package](https://img.shields.io/nuget/v/rimraf?logo=nuget)](https://www.nuget.org/packages/rimraf)\n[![GitHub Package Registry](https://img.shields.io/badge/github-package_registry-yellow?logo=nuget)](https://nuget.pkg.github.com/xt0rted/index.json)\n[![Project license](https://img.shields.io/github/license/xt0rted/dotnet-rimraf)](LICENSE)\n\nDeep deletion command for .NET (like rm -rf).\n\nThis is based on the [node tool](https://github.com/isaacs/rimraf) of the same name.\n\n## Installation\n\nThis tool can be used as a dotnet global tool, or a dotnet local tool.\nIf using it as part of a build script it's recommended to install it as a local tool.\n\n### Global\n\n```console\ndotnet tool install rimraf --global\n```\n\n### Local\n\n```console\ndotnet new tool-manifest\ndotnet tool install rimraf\n```\n\n## Keeping current\n\nTools like [Dependabot](https://github.com/apps/dependabot) (https://github.com/github/feedback/discussions/13825) and [Renovate](https://github.com/marketplace/renovate) don't currently support updating dotnet local tools.\nOne way to automate this is to use a [GitHub Actions workflow](https://github.com/xt0rted/dotnet-tool-update-test) to check for updates and create PRs when new versions are available, which is what this repo does.\n\n## Options\n\nName | Description\n-- | --\n`--dry-run` | See what would be deleted (enables `--verbose`)\n`--no-preserve-root` | Delete the directory being acted on instead of preserving it\n`--verbose` | Enable verbose output\n`--version` | Show version information\n`--help` | Show help and usage information\n\n## Usage\n\nUse `dotnet rimraf` (`rimraf` if using as a global tool) to delete files and directories.\nYou can pass one or more paths or globs to delete.\nGlobbing is handled by the [`DotNet.Glob`](https://github.com/dazinator/DotNet.Glob) library and supports of all its patterns and wildcards.\n\n```console\nrimraf artifacts coverage\n```\n\n```console\nrimraf artifacts/**/*-pre*.nupkg\n```\n\n```console\nrimraf **/bin **/obj\n```\n\n### Working directory\n\nThe working directory is the directory that `rimraf` is run from.\n\n## Development\n\nThis project uses the [run-script](https://github.com/xt0rted/dotnet-run-script) dotnet tool to manage its build and test scripts.\nTo use this you'll need to run `dotnet tool install` and then `dotnet r` to see the available commands or look at the `scripts` section in the [global.json](global.json).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxt0rted%2Fdotnet-rimraf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxt0rted%2Fdotnet-rimraf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxt0rted%2Fdotnet-rimraf/lists"}