Skip to main content

groups/{groupid}/users/{userid} (DELETE) (TCS)


Remove given member from a group

  • REST Method: DELETE
  • Method Access: public

Uri Parameters

Name Type Description
userid string either an integer user ID, "current", or "=" followed by a double uri-encoded user name
groupid string either an integer group ID or "=" followed by a double uri-encoded group name

Query Parameters

Name Type Description
authenticate bool? Force authentication for request (default: false)

Return Codes

Name Value Description
OK 200 Request completed successfully
Bad Request 400 Invalid input parameter
Forbidden 403 Administrator access is required
Not Found 404 Requested group could not be found

Message Format


Empty body


<group id="{int}" href="{uri}">
    <service.authentication id="{int}" href="{uri}" /> 
    <users count="{int}" href="{uri}" /> 
        <operations mask="{int}">{text}</operations> 
        <role id="{int}" href="{uri}">{text}</role> 

Implementation Notes

The user specified in the URI will be removed from the group members list

Curl Code Sample: Remove a User from a Group

The following command removes user "foo" from group "bar":

Sample Code

curl -u admin:password -X DELETE -i http://mindtouch.address/@api/deki/groups/=bar/users/=foo

Implementation notes 

curl flags

Provides external user authentication.
Specifies the HTTP request method.
Outputs the HTTP response headers. Useful for debugging.


ADMIN permission is required to execute above command.
  • Was this article helpful?