Forgejo API
DELETE/admin/unadopted/{owner}/{repo}

Delete unadopted repository files

Deletes the unadopted files associated with a specified owner and repository name. Use this operation to remove unadopted repository files without adopting them as a repository. A successful response contains no body.

2 parameters
ownerstringrequired
The owner associated with the unadopted repository files.
repostringrequired
The name of the unadopted repository files to delete.

2 status codes
204Returns no content after the unadopted files have been deleted.
403Returned when the authenticated user is not permitted to delete unadopted files.
messagestringoptional
urlstringoptional

Error handling

A 403 is returned when the authenticated user is not permitted to delete unadopted files. owner and repo must identify the unadopted repository files you intend to remove.