How do you delete a cell in Google Colab?
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
| Shortcut | Action | Notes |
|---|---|---|
| Ctrl + M + B | Add Code Cell Below | Insert code cell below current |
| Ctrl + M + A | Add Code Cell Above | Insert code cell above current |
| Ctrl + M + D | Delete Cell | Delete current cell |
| Ctrl + M + Y | Convert to Code | Convert cell to code cell |
| Ctrl + M + M | Convert to Text | Convert cell to text cell |
| Ctrl + M + Up/Down | Move Cell | Move cell up or down |
From the Google Colab reference (15 entries) · all how-to answers