How do you delete a cell in Google Colab?

Google Colab · Cell Management · updated 2026-08-23

Ctrl + M + D — Delete Cell

Press Ctrl + M and then D (a two-key sequence: release Ctrl + M first) to delete the current cell in Google Colab. Ctrl + M followed by Z undoes the deletion.

Related Google Colab shortcuts: Cell Management

ShortcutActionNotes
Ctrl + M + BAdd Code Cell BelowInsert code cell below current
Ctrl + M + AAdd Code Cell AboveInsert code cell above current
Ctrl + M + DDelete CellDelete current cell
Ctrl + M + YConvert to CodeConvert cell to code cell
Ctrl + M + MConvert to TextConvert cell to text cell
Ctrl + M + Up/DownMove CellMove cell up or down

From the Google Colab reference (15 entries) · all how-to answers