{"id":22928847,"url":"https://github.com/himasnhu-at/frm","last_synced_at":"2025-04-15T18:20:31.616Z","repository":{"id":267495620,"uuid":"889069260","full_name":"Himasnhu-AT/frm","owner":"Himasnhu-AT","description":"Faster file deletion written in Rust, alternative to rm","archived":false,"fork":false,"pushed_at":"2024-12-10T20:29:32.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T23:21:51.445Z","etag":null,"topics":["cli","cuncurrency","file","file-deletion","linux","rust","rust-threadpool"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/fast_delete","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Himasnhu-AT.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":"2024-11-15T14:52:02.000Z","updated_at":"2025-03-01T21:02:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c20091e-e970-4051-af41-452f3d518fd7","html_url":"https://github.com/Himasnhu-AT/frm","commit_stats":null,"previous_names":["himasnhu-at/frm"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2Ffrm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2Ffrm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2Ffrm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2Ffrm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Himasnhu-AT","download_url":"https://codeload.github.com/Himasnhu-AT/frm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750852,"owners_count":21155795,"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":["cli","cuncurrency","file","file-deletion","linux","rust","rust-threadpool"],"created_at":"2024-12-14T09:28:00.752Z","updated_at":"2025-04-15T18:20:31.611Z","avatar_url":"https://github.com/Himasnhu-AT.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fast Delete (frm)\n\n[![Latest Version](https://img.shields.io/crates/v/fast_delete.svg)](https://crates.io/crates/fast_delete)\n[![Build Status](https://github.com/himasnhu-at/frm/actions/workflows/buildAndTest.yml/badge.svg)](https://github.com/himasnhu-at/frm/actions/workflows/buildAndTest.yml)\n[![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n\nFast Delete is a Rust-based command-line tool designed to be a faster alternative to the traditional `rm -rf` command. It leverages multithreading to efficiently delete files and directories.\n\n## Features\n\n- **Multithreaded Deletion**: Utilizes a thread pool to delete files concurrently, significantly speeding up the deletion process.\n- **Progress Tracking**: Displays a progress bar to track the deletion process in real-time.\n- **Directory Cleanup**: Removes empty directories after file deletion.\n\n## Installation\n\n#### from crate.io\n\n```bash\ncargo install fast_delete\n```\n\n#### from source\n\nTo build and install Fast Delete, ensure you have Rust and Cargo installed, then run:\n\n```bash\ncargo build --release\n```\n\nThe compiled binary will be located in the `target/release` directory.\n\n## Usage\n\n```bash\nfrm \u003cdirectory\u003e\n```\n\n- `\u003cdirectory\u003e`: The path to the directory you want to delete.\n\n## Example\n\n```bash\nfrm ../demo\n```\n\nThis command will delete all files in `../demo`.\n\n## Performance\n\nFast Delete has been benchmarked against the traditional `rm -rf` command. The results show that `frm` is slightly faster:\n\n| Command | Time (s) |\n| ------- | -------- |\n| rm -rf  | 0m0.285s |\n| frm     | 0m0.276s |\n\nAdditionally, here is a detailed summary of a deletion operation performed by `frm`:\n\n```\nDeletion Summary:\nFiles processed: 1687/1687\nDirectories removed: 9\nTime taken: 267.32ms\nAverage speed: 6310.73 files/second\n```\n\nThese results demonstrate that `frm` can handle large directories efficiently, making it a valuable tool for users who need to delete files and directories quickly.\n\n## Documentation\n\nTo generate and open the documentation for Fast Delete, run the following command:\n\n```bash\ncargo doc --open --release\n```\n\nThis will build the documentation and open it in your default web browser.\n\n## Dependencies\n\n- [walkdir](https://crates.io/crates/walkdir): For directory traversal.\n- [rayon](https://crates.io/crates/rayon): For parallel processing.\n- [indicatif](https://crates.io/crates/indicatif): For progress bar display.\n- [num_cpus](https://crates.io/crates/num_cpus): To determine the number of available CPU cores.\n\n## License\n\nThis project is licensed under the BSD 3-Clause License.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## Acknowledgments\n\n- Inspired by the need for a faster file deletion tool.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimasnhu-at%2Ffrm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimasnhu-at%2Ffrm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimasnhu-at%2Ffrm/lists"}