Skip to content

Add option to delete repo if it is broken #17132

Closed
@6543

Description

@6543
Member

If a repo is broken somehow. you will just see a 500 page without the option to delete it.

you can manually add /settings to go to repo settlings page to delete it, but most people don't know.

So I propose a button to directly delete it.

Activity

added
type/enhancementAn improvement of existing functionality
type/proposalThe new feature has not been accepted yet but needs to be discussed first.
on Sep 23, 2021
delvh

delvh commented on Sep 23, 2021

@delvh
Member

How do you break a repo in the first place?
I support your request, but I definitely wonder what you have to do to achieve that…

6543

6543 commented on Sep 24, 2021

@6543
MemberAuthor

https://fosstodon.org/@5am/106979181347005295

It should not hapen ... but there is real world

wxiaoguang

wxiaoguang commented on Sep 24, 2021

@wxiaoguang
Contributor

Where should the link be put to, is there any recommended page/location?

lunny

lunny commented on Sep 24, 2021

@lunny
Member

You can delete it from admin panel currently.

nolash

nolash commented on Oct 18, 2021

@nolash

I got a broken one due to network issues when trying to migrate from a gitlab repo

delvh

delvh commented on Oct 18, 2021

@delvh
Member

Ah, I just noticed a very valid use-case I myself have already encountered and where I already thought about opening an issue:
On my local instance that I use to test Gitea features, I've set my repo dir to be /tmp, so that it will automatically be cleaned when I shutdown my computer.
When I restart Gitea after that, the repo is gone, as expected, but the db does not know about it, and hence I get exactly the described broken state where I cannot do anything with the repo.

delvh

delvh commented on Nov 22, 2021

@delvh
Member

Closed in #17747.

added this to the 1.16.0 milestone on Nov 22, 2021
locked and limited conversation to collaborators on Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionalitytype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lunny@wxiaoguang@nolash@6543@delvh

        Issue actions

          Add option to delete repo if it is broken · Issue #17132 · go-gitea/gitea