{"id":15050651,"url":"https://github.com/proprietary/macos-trash","last_synced_at":"2026-02-17T03:38:09.989Z","repository":{"id":242616701,"uuid":"810056964","full_name":"proprietary/macos-trash","owner":"proprietary","description":"CLI utility to send files to macOS Finder trash can (macOS Sonoma 14.5)","archived":false,"fork":false,"pushed_at":"2024-06-04T02:31:05.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T18:44:33.603Z","etag":null,"topics":["command-line","command-line-interface","command-line-tool","macos","macosx","objective-c","trash","trashcan"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/proprietary.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}},"created_at":"2024-06-04T00:57:47.000Z","updated_at":"2024-10-25T17:08:22.000Z","dependencies_parsed_at":"2024-06-04T02:58:05.914Z","dependency_job_id":"c09ae312-2969-4a93-9e7c-0b0ba773f6db","html_url":"https://github.com/proprietary/macos-trash","commit_stats":null,"previous_names":["proprietary/macos-trash"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/proprietary/macos-trash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2Fmacos-trash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2Fmacos-trash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2Fmacos-trash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2Fmacos-trash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/proprietary","download_url":"https://codeload.github.com/proprietary/macos-trash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proprietary%2Fmacos-trash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29532437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T03:01:11.216Z","status":"ssl_error","status_checked_at":"2026-02-17T03:00:31.803Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["command-line","command-line-interface","command-line-tool","macos","macosx","objective-c","trash","trashcan"],"created_at":"2024-09-24T21:28:43.077Z","updated_at":"2026-02-17T03:38:09.973Z","avatar_url":"https://github.com/proprietary.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"``trash`` for macOS\n~~~~~~~~~~~~~~~~~~~~\n\nThis is a simple utility to send files to macOS's Trash from the command line.\n\nThis works on macOS Sonoma 14.5 (June 2024).\n\nDownload and install binary release\n---------------------------------------\n\n.. code-block:: bash\n\n  curl -fSLO https://github.com/proprietary/macos-trash/releases/download/v1.0.0/trash\n  sudo install ./trash /usr/local/bin\n\nUsage\n-------\n\n.. code-block:: bash\n\n   cd /tmp\n   echo \"hello world\" \u003e hello-world.txt\n   trash hello-world.txt\n\nThis works on directories or regular files. I suggest using\n``trash`` anywhere you would have used ``rm(1)``.\n\nCurrently, this command line tool cannot restore files. You will have\nto open Trash in Finder and restore it from the GUI.\n\nBuilding manually\n-------------------\n\nBuild\n=====\n\n.. code-block:: bash\n\n  xcode-select --install\n  git clone https://github.com/proprietary/macos-trash\n  cd macos-trash\n  make\n  make test\n  sudo make install\n\nVerify installation\n===================\n\n.. code-block:: bash\n\n  trash --version\n\n\nLicense\n--------\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproprietary%2Fmacos-trash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproprietary%2Fmacos-trash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproprietary%2Fmacos-trash/lists"}