Deployed Pages Remain after Repo or User is Deleted #2396
Labels
No labels
accessibility
bug
bug
infrastructure
Codeberg
contributions welcome
docs
duplicate
enhancement
infrastructure
legal
licence / ToS
please chill
we are volunteers
public relations
question
question
user support
s/Forgejo
s/Forgejo/migration
s/Pages
s/Weblate
s/Woodpecker
security
service
upstream
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/Community#2396
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Comment
When using the Codeberg Pages (New Method), the pages at xxx.codeberg.page remain published and available even after the pages repo is deleted - and even after the codeberg user is deleted (> 12 hours).
Is it possible to delete them within a short time (1 hour) after deletion of repo and / or user?
I have a similar issue, which is that I published Pages to multiple
codeberg.pagedomains while I was debugging stuff. Now I have my Pages being served correctly, but old versions still laying around. I’d like to delete them like I did withgrebedoc.devusinggit-pages-clibut I can’t seem to figure out which “site”, “server”, “token” and “password” to use… here is what I’ve tried so far:You should be able to create a token for your user (make sure it has at least "repository: read and write" level of permission) then use git-pages-cli with the
--token ... --deleteoptions to remove it. Let me know if that fails.Server:header in responses and bail out if it's not a git-pages endpoint #23Regarding the unexpected HTML responses, I filed git-pages/git-pages-cli#23 to track that.
@whitequark Thank you for your interest! Unfortunately that’s what the examples with
--token "${CODEBERG_TOKEN:?}"used 😕 Did I miss the correct flag/arg combination?@RemiBardon Oh, right, we never implemented Forge-Authorization for
DELETErequests. I'll make sure we do.DELETErequests #116