# Drawstep engine · Effects · `removeKeyword` > Remove keyword — Remove this keyword in layer 6; use permanent for a printed loss with no stated duration (CR 611.2a, 613.1f). Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/effects#removeKeyword ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "removeKeyword", … }`. Steps resolve in order. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `target` | `TargetDef` | yes | What it acts on (TargetDef) | | `keyword` | `string` | yes | A plain keyword string ("Flying", "Haste" …) as in `keywords[]` | | `cantHave` | `boolean` | no | CR 101.2, 613.1f: also cannot have or gain this keyword during the duration, even from later grants | | `duration` | `Duration` | no | CR 611.2a-b, 702.26f: continuous-effect duration. Conditional source/target filters are ANDed, identities and you are fixed on resolution, and failure ends the effect permanently. untilEndOfYourNextTurn lasts through your next turn's end step and expires at cleanup; whileYourTurn ends when another player becomes active and cannot start on an opponent's turn. untilYourNextEndStep / untilYourNextUpkeep end as that step begins; endOfCombat ends as the end-combat step ends (CR 511.2); endOfAdditionalCombat lasts through the additional combat phase created before it resolved, ending as that combat's end-combat step ends (CR 500.8, 506.1 — "that combat"). untilEvent ends when the described event happens. perpetual survives zone changes | ## Minimal form ```json {"effect":"removeKeyword","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"keyword":"Flying"} ``` The engine reads that minimal form as: “target creature loses flying until end of turn”. ## Stock examples - **Permanent Flight Removal** — “Target creature loses flying.” ```json {"effect":"removeKeyword","target":{"of":"object","mode":"chosen","filter":{"types":["Creature"]}},"keyword":"Flying","duration":"permanent"} ``` - **Shadowspear** — “” ```json {"effect":"removeKeyword","target":{"of":"object","mode":"all","filter":{"controller":"opponent"}},"keyword":"Hexproof","duration":"endOfTurn"} ``` - **Arcane Lighthouse** — “{1}, {T}: Until end of turn, creatures your opponents control lose hexproof and shroud and can't have hexproof or shroud.” ```json {"effect":"removeKeyword","target":{"of":"object","mode":"all","filter":{"types":["Creature"],"controller":"opponent"}},"keyword":"Hexproof","cantHave":true,"duration":"endOfTurn"} ``` ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.md) — the whole topic - [Filters & targets](https://drawstep.xyz/wiki/mtg/targets.md) — how `target` / `filter` select objects and players (selection algebra) - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive