{"id":19182011,"url":"https://github.com/glentner/delete-cli","last_synced_at":"2025-05-07T23:07:53.750Z","repository":{"id":44866545,"uuid":"236536251","full_name":"glentner/delete-cli","owner":"glentner","description":"Simple, cross-platform, command-line move-to-trash.","archived":false,"fork":false,"pushed_at":"2024-07-05T23:43:17.000Z","size":314,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T23:07:48.880Z","etag":null,"topics":["command-line-tool","cross-platform"],"latest_commit_sha":null,"homepage":"https://delete-cli.readthedocs.io","language":"Python","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/glentner.png","metadata":{"files":{"readme":"README.rst","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,"zenodo":null}},"created_at":"2020-01-27T16:28:56.000Z","updated_at":"2024-06-08T17:53:08.000Z","dependencies_parsed_at":"2025-04-21T09:48:34.598Z","dependency_job_id":null,"html_url":"https://github.com/glentner/delete-cli","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2Fdelete-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2Fdelete-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2Fdelete-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glentner%2Fdelete-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glentner","download_url":"https://codeload.github.com/glentner/delete-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252968118,"owners_count":21833251,"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":["command-line-tool","cross-platform"],"created_at":"2024-11-09T10:56:16.242Z","updated_at":"2025-05-07T23:07:53.730Z","avatar_url":"https://github.com/glentner.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Delete\n======\n\n*A simple, cross-platform, command-line move-to-trash.*\n\n.. image:: https://img.shields.io/badge/License-MIT-yellow.svg\n    :target: https://opensource.org/licenses/MIT\n    :alt: License\n\n.. image:: https://img.shields.io/pypi/v/delete-cli.svg\n    :target: https://pypi.org/project/delete-cli\n    :alt: PyPI Version\n\n.. image:: https://img.shields.io/pypi/pyversions/delete-cli.svg?logoColor=white\n    :target: https://pypi.org/project/delete-cli\n    :alt: Python Versions\n\n.. image:: https://readthedocs.org/projects/delete-cli/badge/?version=latest\u0026color=green\n    :target: https://delete-cli.readthedocs.io\n    :alt: Documentation\n\n.. image:: https://pepy.tech/badge/delete-cli\n    :target: https://pepy.tech/badge/delete-cli\n    :alt: Downloads\n\n\nBut why?\n--------\n\nThe ``del`` command is a simple alternative to using the standard ``rm`` command.\nUsing ``rm`` as a matter of course can be dangerous and prone to mistakes. Once a file is\nunlinked with ``rm`` it cannot be recovered (without having backups).\n\nAll major graphical environments offer a \"move to trash\" option. This does a clean move\noperation to a \"trash\" folder. Once a file as been put in the trash it can be recovered\neasily. Periodically, the trash can be emptied if desired.\n\n``del`` is a command-line implementation of this metaphor. It maintains a basic\n``sqlite3`` database of files and folders put in the trash. Using the ``--list`` option\nwill list the contents. Using ``--restore`` will restore a file or folder from the trash.\nUsing ``--empty`` will purge anything put in the trash by ``del``.\n\n\nInstallation\n------------\n\nIf you already have Python 3.12+ on your system, you can install ``del`` using Pip.\n\n.. code-block:: bash\n\n    pip install delete-cli\n\n\nBasic Usage\n-----------\n\nCalling ``del`` with no arguments or with the ``--help`` flag yield typically Unix\nstyle behavior, print a usage or help statement, respectively. For detailed usage and\nexamples you can read the manual page, ``man del``.\n\nDeleting files and folders is as simple as:\n\n.. code-block:: bash\n\n    del file1.txt file2.txt folderA\n\nFiles or folders that get deleted with the same basename will have a suffix added before\nthe extension (e.g., ``file1.1.txt``, ``file1.2.txt``, ...).\n\nRestore files using their basename (in the trash), their full path (in the trash) or\ntheir original full path.\n\n\nDocumentation\n-------------\n\nDocumentation is available at `delete-cli.readthedocs.io \u003chttps://delete-cli.readthedocs.io\u003e`_.\nFor basic usage information on the command-line use: ``del --help``. For a more comprehensive\nusage guide on the command line you can view the manual page with ``man del``.\n\n\nContributions\n-------------\n\nContributions are welcome in the form of suggestions for additional features, pull requests with\nnew features or bug fixes, etc. If you find bugs or have questions, open an *Issue* here. If and\nwhen the project grows, a code of conduct will be provided along side a more comprehensive set of\nguidelines for contributing; until then, just be nice.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglentner%2Fdelete-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglentner%2Fdelete-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglentner%2Fdelete-cli/lists"}