MenuMethods

Procedure · POST

group.opensocial.deleteSpace

Remove a space. Refuses the two well-known spaces.

Remove a space. Requires space.delete. Refuses on the meta and members spaces.

Requires
space.delete

Input

groupstring · didrequired

The group DID. Every method is served by the group's host and authorized against that group's roles.

spacestring · space-refrequired

Errors

  • WellKnownSpace

Schema

Lexicon JSON
{
  "lexicon": 1,
  "id": "group.opensocial.deleteSpace",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Remove a space. Requires space.delete. Refuses on the meta and members spaces.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "group",
            "space"
          ],
          "properties": {
            "group": {
              "type": "string",
              "format": "did",
              "description": "The group DID. Every method is served by the group's host and authorized against that group's roles."
            },
            "space": {
              "type": "string",
              "format": "space-ref"
            }
          }
        }
      },
      "errors": [
        {
          "name": "WellKnownSpace"
        }
      ]
    }
  }
}

← All methods