{"id":19635567,"url":"https://github.com/redh00k-k/go-trash","last_synced_at":"2026-02-26T07:39:31.866Z","repository":{"id":193690976,"uuid":"689320024","full_name":"Redh00k-k/go-trash","owner":"Redh00k-k","description":"Simple CLI that move files and folder to the trashbox. ","archived":false,"fork":false,"pushed_at":"2025-02-21T11:26:09.000Z","size":51,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T12:29:17.920Z","etag":null,"topics":["cli","cross-platform","go","golang","recycle-bin","trash","trashcan"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Redh00k-k.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":"2023-09-09T12:41:35.000Z","updated_at":"2025-02-21T11:26:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"2be8712b-3e6a-45fa-8a4d-54dc8b800505","html_url":"https://github.com/Redh00k-k/go-trash","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":0.09999999999999998,"last_synced_commit":"e2a697bcae2437412e010b7899ec01b0b4463720"},"previous_names":["redh00k-k/go-trash"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redh00k-k%2Fgo-trash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redh00k-k%2Fgo-trash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redh00k-k%2Fgo-trash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Redh00k-k%2Fgo-trash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Redh00k-k","download_url":"https://codeload.github.com/Redh00k-k/go-trash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240941484,"owners_count":19882062,"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","cross-platform","go","golang","recycle-bin","trash","trashcan"],"created_at":"2024-11-11T12:25:52.634Z","updated_at":"2026-02-26T07:39:26.843Z","avatar_url":"https://github.com/Redh00k-k.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-trash\nThe `go-trash` is simple CLI, that move files and folder to the trashbox written in Go.\nWorks on Linux and Windows 11.\n\n# Usage\n```\n$ ./go-trash -h\nUsage: go-trash [-hlt] [-o File] [-u File] [parameters ...]\n -h       Show help\n -l       List trashed files\n -o File  Output file to location\n -t       Run TUI mode\n -u File  Restore files to original location\n```\n\n## TUI \n### Display mode\nDisplay the contents of the trash  (~/.local/share/Trash)\n![](./img/tui_1.png)\n\nPress `Enter` toggle to detail mode\nTBD: Preview file\n![](./img/tui_2.png)\n\n### Undelete\nPress `U` to undelete file to its original location.\n\n### Fileter\nPress `/` to display filter.\n![](./img/tui_3.png)\n\n\n## CUI \n### Trash\n* Windows\n```\nC:\\Users\\user\\Desktop\u003e go-trash.exe aaa.txt bbb_dir\n```\n\n* Linux\n```\n~$ ./go-trash aaa.txt bbb_dir\n```\n\n### Print list trashed files\n* Windows\n```\nC:\\Users\\user\\Desktop\u003e go-trash.exe -l\n\n🗑️ TrashBox 🗑️\n\nFileName    : aaa.txt\nLocation    : C:\\Users\\user\\Desktop\\aaa.txt\nInTrashBox  : C:\\$RECYCLE.BIN\\S-xxx\\$RABCD.txt\nDateDeleted : 2023/1/2 12:34:56\nSize        : 1234\n\nFileName    : bbb_dir\nLocation    : C:\\Users\\user\\Desktop\\bbb_dir\nInTrashBox  : C:\\$RECYCLE.BIN\\S-xxx\\$R1C0U4Q\nDateDeleted : 2023/1/2 12:34:56\nSize        : 0\n```\n\n* Linux\n```\n~$ ./go-trash -l\n\n🗑️ TrashBox 🗑️\n\nFileName    : aaa.txt\nLocation    : /home/user/aaa.txt\nInTrashBox  : /home/user/.local/share/Trash/files/aaa.txt\nDateDeleted : 2023-01-23T12:34:56\nSize        : 1234\n\nFileName    : bbb_dir\nLocation    : /home/user/bbb_dir\nInTrashBox  : /home/user/.local/share/Trash/files/bbb_dir\nDateDeleted : 2023-01-23T12:34:56\nSize        : 0\n```\n\n\n### Restore files\nIf only one file or directory exists, restore it\n\n* Windows \n```\nC:\\Users\\user\\Desktop\u003e go-trash.exe -u aaa.txt\nRestore         : C:\\Users\\user\\Desktop\\aaa.txt\n```\n\n* Linux\n```\n~$ ./go-trash -u bbb_dir\nRestore: /home/user/bbb_dir\n```\n\n\nIf more than one file exists, restore the file with the selected 'ID'\n* Windows \n```\nC:\\Users\\user\\Desktop\u003e go-trash.exe aaa.txt ../aaa.txt\nC:\\Users\\user\\Desktop\u003e go-trash.exe -u aaa.txt -o test.txt \nID       DateDeleted                     FileSize        Path\n0        2024-01-01 12:34:56             7               C:\\Users\\user\\Desktop\\aaa.txt\n1        2024-01-01 12:35:00             130             C:\\Users\\user\\aaa.txt\nWhich one do you restore? \u003e 0\nRestore C:\\Users\\user\\Desktop\\aaa.txt → C:\\Users\\user\\Desktop\\test.txt\n```\n\n* Linux\n```\n~$ ./go-trash bbb_dir /tmp/bbb_dir\n~$ ./go-trash  -u bbb -o test\nID       DateDeleted                     FileSize        Path\n0        2024-01-01 12:34:56             0               /home/user/bbb_dir\n1        2024-01-01 12:35:00             0               /tmp/bbb_dir\nWhich one do you restore? \u003e 0\nRestore /home/user/bbb_dir → /home/user/bbb_dir\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredh00k-k%2Fgo-trash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredh00k-k%2Fgo-trash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredh00k-k%2Fgo-trash/lists"}