# com.livtet.shelf.removeItem

> Delete one shelf membership edge. Answers NotFound when the book is not on the shelf.

- Kind: procedure
- Authority: shelf.livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.shelf.removeItem)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.shelf.removeItem/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.shelf.removeItem/analytics)

## Procedure (`com.livtet.shelf.removeItem`)

Type: procedure · POST

### Input (application/json)

- `book` (object, required): A strongRef or a bare {uri} naming the edition to remove.
- `shelf` (string · at-uri, required): AT-URI of the shelf record.

### Output (application/json)

- `uri` (string · at-uri, required): AT-URI of the deleted shelfItem record.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Delete one shelf membership edge. Answers NotFound when the book is not on the shelf.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "book": {
              "description": "A strongRef or a bare {uri} naming the edition to remove.",
              "properties": {
                "cid": {
                  "description": "Optional CID of the edition record.",
                  "format": "cid",
                  "type": "string"
                },
                "uri": {
                  "description": "AT-URI of the catalog edition record.",
                  "format": "at-uri",
                  "type": "string"
                }
              },
              "required": [
                "uri"
              ],
              "type": "object"
            },
            "shelf": {
              "description": "AT-URI of the shelf record.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "shelf",
            "book"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "uri": {
              "description": "AT-URI of the deleted shelfItem record.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Take a book off a shelf by deleting the shelfItem at <shelf rkey>-<edition rkey>.",
  "id": "com.livtet.shelf.removeItem",
  "lexicon": 1
}
```
