Release attachments remain on disk after deleting the release #1103

Closed
opened 2025-11-02 03:48:49 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @thmo on GitHub (Sep 28, 2017).

  • Gitea version (or commit ref): 1.2.0+rc3
  • Git version: 2.11.0
  • Operating system: Debian GNU/Linux 9 (stretch)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite

Description

When deleting a release, the files attached to this release are not deleted from the data/attachments folder of Gitea.

Originally created by @thmo on GitHub (Sep 28, 2017). - Gitea version (or commit ref): 1.2.0+rc3 - Git version: 2.11.0 - Operating system: Debian GNU/Linux 9 (stretch) - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL - [ ] MSSQL - [ ] SQLite ## Description When deleting a release, the files attached to this release are not deleted from the `data/attachments` folder of Gitea.
GiteaMirror added the issue/confirmedtype/enhancement labels 2025-11-02 03:48:49 -06:00
Author
Owner

@stale[bot] commented on GitHub (Feb 12, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Feb 12, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@adelowo commented on GitHub (Feb 12, 2019):

Unstale

good bot

@adelowo commented on GitHub (Feb 12, 2019): ___Unstale___ > good bot
Author
Owner

@rakshith-ravi commented on GitHub (Apr 4, 2019):

Quick question: If I have deleted some releases with attachments earlier, how do I remove them from disk as of now? Is there any way to "clean" the attachments folder?

@rakshith-ravi commented on GitHub (Apr 4, 2019): Quick question: If I have deleted some releases with attachments earlier, how do I remove them from disk as of now? Is there any way to "clean" the attachments folder?
Author
Owner

@lunny commented on GitHub (Apr 10, 2019):

Currently no tool to do that and I think we need a tool to clean that on admin panel or command line.

@lunny commented on GitHub (Apr 10, 2019): Currently no tool to do that and I think we need a tool to clean that on admin panel or command line.
Author
Owner

@adelowo commented on GitHub (Apr 10, 2019):

I should find time to complete https://github.com/go-gitea/gitea/pull/6068

@adelowo commented on GitHub (Apr 10, 2019): I should find time to complete https://github.com/go-gitea/gitea/pull/6068
Author
Owner

@zhanhb commented on GitHub (Jun 16, 2019):

IMO, when editing release draft, the uploaded attachment should be appeared in the list.
I want to know if I'm right if the api become stable?

@zhanhb commented on GitHub (Jun 16, 2019): IMO, when editing release draft, the uploaded attachment should be appeared in the list. I want to know if I'm right if the api become stable?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1103