---
tag: m0022
title: Release SD card
brief: Simulate ejection of the SD card
author: thinkyhead

group: sdcard
requires: SDSUPPORT

codes: [ M22 ]
related: [ M21 ]

---

If Marlin gets confused about the state of the SD card, this command can be used to simulate an ejection of the SD card.

Re-insert the SD card or use [`M21`](/docs/gcode/M021.html) to enable the SD card.
