Was this helpful?

See all application entities

You can delete users from your application by using cURL or one of the SDKs.

Use the DELETE method to delete a group.

Request URI

DELETE /<org_id>/<app_id>/groups/<uuid | groupname>

Parameters

Parameter Description
uuid | org_id Organization UUID or organization name
uuid | app_id Application UUID or application name
uuid | groupname UUID or name of the group

Example - Request

curl -X DELETE "https://api.usergrid.com//my-org/my-app/groups/mynewgroup"

Example - Response

{
    "action": "delete",
    "application": "7fb8d891-477d-11e1-b2bd-22000a1c4e22",
    "params": {
        "_": [
            "1331066144280"
        ]
    },
    "path": "/groups",
    "uri": "https://api.usergrid.com/22000a1c4e22-7fb8d891-477d-11e1-b2bd/7fb8d891-477d-11e1-b2bd-22000a1c4e22/groups",
    "entities": [
        {
            "uuid": "a668717b-67cb-11e1-8223-12313d14bde7",
            "type": "group",
            "created": 1331066016571,
            "modified": 1331066092191,
            "foo": "bar",
            "metadata": {
                "path": "/groups/a668717b-67cb-11e1-8223-12313d14bde7",
                "sets": {
                    "rolenames": "/groups/a668717b-67cb-11e1-8223-12313d14bde7/rolenames",
                    "permissions": "/groups/a668717b-67cb-11e1-8223-12313d14bde7/permissions"
                },
                "collections": {
                    "activities": "/groups/a668717b-67cb-11e1-8223-12313d14bde7/activities",
                    "feed": "/groups/a668717b-67cb-11e1-8223-12313d14bde7/feed",
                    "roles": "/groups/a668717b-67cb-11e1-8223-12313d14bde7/roles",
                    "users": "/groups/a668717b-67cb-11e1-8223-12313d14bde7/users"
                }
            },
            "path": "mynewgroup"
        }
    ],
    "timestamp": 1331066144462,
    "duration": 302,
    "organization" : "my-org",
    "applicationName": "my-app"
}

Delete a group from your application as you would delete another entity generically. For more information, see Deleting Data Entities.

Delete a group from your application as you would delete another entity generically. For more information, see Deleting Data Entities.

Delete a group from your application as you would delete another entity generically. For more information, see Deleting Data Entities.

The example assumes use of the Ruby SDK.

app = Usergrid::Application.new 'https://api.usergrid.com/my-org/my-app/'
app['groups/mynewgroup'].delete

The example assumes use of the Node.js module.

var options = {
    method:'DELETE',
    endpoint:'groups/mynewgroup'
};
client.request(options, function (err, data) {
    if (err) {
        //error
    } else {
        //success - data will contain raw results from API call
    }
});

 

Add new comment

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.