Skip to main content
DELETE
/
repos
/
{owner}
/
{repo}
/
collaborators
/
{collaborator}
Remove a collaborator
curl --request DELETE \
  --url https://gogs.example.com/api/v1/repos/{owner}/{repo}/collaborators/{collaborator} \
  --header 'Authorization: <api-key>'

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

owner
string
required

Repository owner

repo
string
required

Repository name

collaborator
string
required

Collaborator username

Response

The resource has been successfully deleted.