How to delete branch completely? #1744

Closed
opened 2025-11-02 04:12:00 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @Wooden-Robot on GitHub (Apr 30, 2018).

Description

How to delete branch completely?

Screenshots

image
image

Originally created by @Wooden-Robot on GitHub (Apr 30, 2018). - Gitea version (or commit ref):1.4.0 - Operating system: Ubuntu 16.04 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (https://try.gitea.io/woodenrobot/branch_test/branches) - [ ] No - [ ] Not relevant ## Description How to delete branch completely? ## Screenshots ![image](https://user-images.githubusercontent.com/17327054/39439822-7d36f17a-4cdb-11e8-83ca-70188d155e3b.png) ![image](https://user-images.githubusercontent.com/17327054/39439860-9bd1f3a0-4cdb-11e8-8cae-f691a71ad741.png)
GiteaMirror added the type/question label 2025-11-02 04:12:00 -06:00
Author
Owner

@Wooden-Robot commented on GitHub (May 1, 2018):

I can see it when I login.Other people can't see it.
is this a feature of gitea?
And is there a way to delete it completely?

When I login:
image

Other people:
image

@Wooden-Robot commented on GitHub (May 1, 2018): I can see it when I login.Other people can't see it. is this a feature of gitea? And is there a way to delete it completely? When I login: ![image](https://user-images.githubusercontent.com/17327054/39460194-139f2562-4d34-11e8-9aaf-c7b440c2daaf.png) Other people: ![image](https://user-images.githubusercontent.com/17327054/39460180-eb23f1e4-4d33-11e8-8421-6258cc57747a.png)
Author
Owner

@bkcsoft commented on GitHub (May 1, 2018):

As an Admin I could delete it, but I can't restore it 🤔

Since https://github.com/go-gitea/gitea/pull/2108 we delete branches in a background job (so it can be restored later on). It should be deleted within 24h (by default).

@Bwko You wrote that feature. Is there a way to delete a branch immediately?

@bkcsoft commented on GitHub (May 1, 2018): As an Admin I could delete it, but I can't restore it :thinking: Since https://github.com/go-gitea/gitea/pull/2108 we delete branches in a background job (so it can be restored later on). It should be deleted within 24h (by default). @Bwko You wrote that feature. Is there a way to delete a branch immediately?
Author
Owner

@Wooden-Robot commented on GitHub (May 1, 2018):

@bkcsoft Thank you for your information!

@Wooden-Robot commented on GitHub (May 1, 2018): @bkcsoft Thank you for your information!
Author
Owner

@Wooden-Robot commented on GitHub (May 2, 2018):

I find it.
image

@Wooden-Robot commented on GitHub (May 2, 2018): I find it. ![image](https://user-images.githubusercontent.com/17327054/39501159-c79febca-4deb-11e8-8bf3-e290cba6ace8.png)
Author
Owner

@Bwko commented on GitHub (May 2, 2018):

@bkcsoft Nope, I'll look into that

@Bwko commented on GitHub (May 2, 2018): @bkcsoft Nope, I'll look into that
Author
Owner

@Perflyst commented on GitHub (Aug 31, 2018):

This issue was closed even there was no working solution for the real problem.
I wanted to reuse a name of a deleted branch but didnt found a way to do this. I get an error because of the old branch which used the same name.

@Perflyst commented on GitHub (Aug 31, 2018): This issue was closed even there was no working solution for the real problem. I wanted to reuse a name of a deleted branch but didnt found a way to do this. I get an error because of the old branch which used the same name.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1744