# Kategorie aus Produkt entfernen via MCP API - type: "remove" funktioniert nicht

**URL:** <https://forum.shopware.com/t/kategorie-aus-produkt-entfernen-via-mcp-api-type-remove-funktioniert-nicht/109574>\
**Category:** Shopware 6 (German)\
**Created:** [September 4, 2026, 1:52pm UTC](https://forum.shopware.com/t/kategorie-aus-produkt-entfernen-via-mcp-api-type-remove-funktioniert-nicht/109574 "2026-09-04T13:52:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KEOW](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/keow/32/27850_2.png) [@KEOW](https://forum.shopware.com/u/KEOW)\
**Post date:** [September 4, 2026, 1:52pm UTC](https://forum.shopware.com/t/kategorie-aus-produkt-entfernen-via-mcp-api-type-remove-funktioniert-nicht/109574/1 "2026-09-04T13:52:42Z")

</div>

Hallo zusammen,

ich versuche, eine Kategorie aus einem Produkt über die **MCP API** (shopware-entity-upsert) zu entfernen, aber es funktioniert nicht. Bevor ich einen Bug-Report schreibe, möchte ich fragen, ob ich möglicherweise auf dem **falschen Weg** bin oder etwas übersehe.

#### Das Problem

Ich versuche, die Kategorie `"019f1d7295377182922cf3b3cbd00b2a"` (Urnen für Hunde) aus einem Produkt zu entfernen:

**Payload:**

json

```auto
{
  "id": "019f1d72a32870e495e4f29a442cf578",
  "categories": [
    {
      "id": "019f1d7295377182922cf3b3cbd00b2a",
      "type": "remove"
    }
  ]
}

```

**Ergebnis:**

- API antwortet: `"success": true` mit `dryRun: false`
- Das klingt erst mal nach Erfolg…
- ABER: Die Kategorie ist **immer noch** im Produkt enthalten
- Das `categoryIds` Array hat immer noch 7 Einträge statt 6

#### Bisherige Versuche

1. **Direct API** - Erst versucht mit `categoryIds` direkter Update
  - Fehler: `"[/0/categoryIds] This field is write-protected"`
  - Also auf `categories` Association gewechselt

2. **Mit `type: "remove"`** - Wie in der Shopware Dokumentation beschrieben
  - API sagt `success: true`
  - Aber DB wird nicht geändert

3. **Shopware aktualisiert** - Von 6.7.12.2 auf 6.7.13.2
  - Problem bleibt bestehen

4. **Im Admin UI** - Kategorie manuell entfernt
  - Das funktioniert tadellos!

#### Die Fragen

- **Ist `type: "remove"` die richtige Syntax?** Oder gibt es einen anderen Weg via API?
- **Ist das ein MCP-Problem?** Oder ein Shopware API Problem?
- **Kann das ein Bug sein?** Oder mache ich etwas falsch?
- **Gibt es eine Alternative?** Wenn nicht über Kategorien, dann vielleicht über die `product_category` Tabelle direkt?

#### Umgebung

- Shopware: **6.7.13.2**
- MCP Tool: **shopware-entity-upsert**
- Produkt-ID: `019f1d72a32870e495e4f29a442cf578`
- Kategorie-ID: `019f1d7295377182922cf3b3cbd00b2a`

Danke im Voraus für die Hilfe!

---

<div class="post-metadata">

**Author:** ![raymond-de](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@raymond-de](https://forum.shopware.com/u/raymond-de)\
**Post date:** [September 4, 2026, 2:24pm UTC](https://forum.shopware.com/t/kategorie-aus-produkt-entfernen-via-mcp-api-type-remove-funktioniert-nicht/109574/2 "2026-09-04T14:24:15Z")

</div>

Issue hast du doch aufgemacht: [MCP API: type: "remove" parameter not working for product categories (shopware-entity-upsert) · Issue #20136 · shopware/shopware · GitHub](https://github.com/shopware/shopware/issues/20136)

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [September 5, 2026, 9:49am UTC](https://forum.shopware.com/t/kategorie-aus-produkt-entfernen-via-mcp-api-type-remove-funktioniert-nicht/109574/3 "2026-09-05T09:49:46Z")

</div>

Noch nicht intensiv mit Shopware MACP beschäftigt, aber es gibt auf Entities kein remove, nur delete.
