SP.GroupCollection.removeByLoginName Method (sp.js)

Removes the cross-site group with the specified name from the collection.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.GroupCollection.removeByLoginName()

Parameters

  • loginName
    A string that contains the name of the group.

REST resource endpoint

See GroupCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/sitegroups/removeByLoginName(loginName)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/sitegroups/removeByLoginName(loginName)

Resource parameters

  • loginName