# Archive Custom Ingredient



{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

Archive a custom ingredient — withdraw it from active use. Soft: never a hard delete, the entity stays readable and pinned references in existing recipes are undisturbed. An archived ingredient is rejected from NEW recipe composition; use `unarchiveCustomIngredient` to reverse. Idempotent: re-archiving an already-archived ingredient returns the existing `version_id`.

<APIPage document="&#x22;bettermenu&#x22;" operations="[{&#x22;path&#x22;:&#x22;/studio/custom-ingredients/{custom_ingredient_id}/archive&#x22;,&#x22;method&#x22;:&#x22;post&#x22;}]" />
