Remove a user from a group Run in API Explorer

DELETE /v2/orgs/{org_name}/groups/{group_name}/members/{username}

Path parameters

  • org_name string Required

    Name of the organization (namespace).

  • group_name string Required

    Name of the group (team) in the organization.

  • username string Required

    Username, identifier for the user (namespace, DockerID).

Responses

  • 204

    User removed successfully

  • 401 application/json

    Authentication failed

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
  • 403 application/json

    Forbidden

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
DELETE /v2/orgs/{org_name}/groups/{group_name}/members/{username}
curl \
 --request DELETE 'https://hub.docker.com/v2/orgs/myorganization/groups/developers/members/jonsnow' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (403)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (404)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}