Right-click the row number to delete it

To delete a row in Google Sheets, click on the row number on the left side of the spreadsheet to select the entire row, then right-click and choose Delete row from the menu. The row disappears immediately, and all rows below it shift up to fill the gap.

You can select multiple rows at once by clicking the first row number, then holding Shift and clicking the last row number you want to delete. Right-click any of the selected rows and choose Delete row — all selected rows will be removed together.

If you accidentally delete a row, press Ctrl+Z (or Cmd+Z on Mac) right away to undo the deletion. Google Sheets keeps your undo history for several actions, so you can step back through recent changes.

Key Takeaways

  • Click the row number on the left to select an entire row, then right-click and choose Delete row.
  • You can select multiple rows by clicking the first, holding Shift, and clicking the last row you want to remove.
  • Deleting a row shifts all rows below it upward — the data does not stay in the same position.
  • Press Ctrl+Z (or Cmd+Z on Mac) immediately after deletion if you need to undo the action.

Using the menu bar instead of right-clicking

If right-clicking does not work on your device or you prefer using menus, you can delete a row through the top menu. Select the row by clicking its number, then click Edit in the menu bar and choose Delete row.

This method works the same way as right-clicking — the row is removed and rows below shift up. The menu approach is useful if you are on a touchpad or tablet where right-clicking is awkward.

What happens to formulas and references when you delete a row

When you delete a row, any formulas in other cells that reference data in that row will break or change. For example, if cell C5 contains the formula =A3+B3 and you delete row 3, the formula will show an error because row 3 no longer exists.

Google Sheets does not automatically update formula references when you delete a row. Before deleting, scan your spreadsheet for formulas that might depend on the row you are about to remove. If you are unsure whether formulas reference that row, undo the deletion and check first.

If you need to remove data but keep your formulas working, consider hiding the row instead of deleting it. Right-click the row number and choose Hide row — the data stays in place and formulas continue to work, but the row is not visible.

Deleting rows with specific content

If you want to delete multiple rows that match a certain condition — for example, all rows where the status is "Inactive" — you can use Google Sheets' filter feature to show only those rows, then delete them together. Click Data in the menu bar and choose Create a filter.

Once the filter is active, click the filter icon in the column header and uncheck the values you want to keep. Only the rows you want to delete will be visible. Select all visible rows (except the header), right-click, and choose Delete row. When you remove the filter afterward, only the rows you kept will remain.

This approach is much faster than deleting rows one at a time when you have dozens or hundreds of rows to remove based on a pattern.

The difference between deleting and clearing

Deleting a row removes the entire row from the spreadsheet — the row is gone, and all rows below shift up. Clearing a row removes only the content inside the cells while keeping the row itself in place. The row number stays the same, and the empty row remains in your spreadsheet.

Use delete when you want to remove a row entirely and do not need the empty space. Use clear when you want to erase the data but keep the row structure intact — this is useful if you have formulas or formatting in other rows that depend on row numbers staying the same.

To clear a row instead of deleting it, select the row, right-click, and choose Clear contents. The row stays in place but becomes empty.

Recovering a deleted row

If you deleted a row and did not notice right away, you can still undo it as long as you have not closed the spreadsheet. Press Ctrl+Z (or Cmd+Z on Mac) repeatedly to step backward through your recent actions until the row reappears.

Google Sheets keeps your undo history for the current session, but once you close the file and reopen it, the undo history is cleared. If you closed the spreadsheet, the deletion is permanent — there is no way to recover it from Google Sheets itself.

If you need to restore data from before a deletion, check whether your Google Drive has a version history. Right-click the file in Google Drive, choose Version history, and look for an earlier version of the spreadsheet. You can open that version and copy the deleted row back into your current file.

Frequently Asked Questions

Can I delete a row if I do not own the spreadsheet?

It depends on the permissions the owner gave you. If you have Editor access, you can delete rows. If you have Viewer or Commenter access, you cannot delete rows — you can only view or comment on the file. Ask the owner to give you Editor access if you need to delete rows.

What if I delete a row by mistake and I already closed the file?

Once you close the spreadsheet, the undo history is gone. Check your Google Drive version history: right-click the file, choose Version history, and open an earlier version. You can copy the deleted row from the old version and paste it back into your current file.

Does deleting a row affect other sheets in the same spreadsheet?

Deleting a row only affects the sheet you are currently viewing. Other sheets in the same spreadsheet are not changed. However, if another sheet has a formula that references the deleted row, that formula will break and show an error.

Can I delete the header row?

Yes, you can delete the header row the same way you delete any other row — click the row number and choose Delete row. Google Sheets does not protect header rows. If you have a filter active, deleting the header row will also delete the filter.

Is there a keyboard shortcut to delete a row?

There is no single keyboard shortcut that works across all devices. The fastest method is to click the row number, right-click, and choose Delete row from the menu. On some keyboards, you can also select the row and use the menu bar: Edit > Delete row.