{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Withdraw the viewer's own gallery from a group's pool. The gallery, its photos and the items joining them are the viewer's records in the viewer's repo, held inside the group's space, so this removes them from that space and nothing else. Only the author's own repo is touched: whoever acts as the group evicts by a different route.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "group": {
              "description": "The group whose pool holds it.",
              "format": "did",
              "type": "string"
            },
            "rkey": {
              "description": "The gallery's rkey in the author's repo.",
              "type": "string"
            }
          },
          "required": [
            "group",
            "rkey"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "deleted": {
              "description": "Records removed: the gallery, its items and its photos.",
              "type": "integer"
            }
          },
          "required": [
            "deleted"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.grain.unspecced.deletePoolGallery",
  "lexicon": 1
}
