Setup & site building · Guide
How to Delete a Block in WordPress (Single, Multiple, Locked and Template Blocks)

Short answer
To delete a block in WordPress, click the block, open the three-dot options menu in the block toolbar and choose Delete. You can also use the keyboard shortcut shown next to Delete in that menu, or select the block in List View and delete it there. Press Ctrl+Z, or Cmd+Z on a Mac, straight away if you remove the wrong block.
Key takeaways
- Delete is in the block toolbar's three-dot options menu.
- List View makes it easy to select and delete nested blocks.
- Shift-click to select and delete several blocks at once.
- Locked blocks need their lock removed before they can be deleted.
- Undo or a post revision brings back blocks deleted by mistake.
How do you delete a block in WordPress?
Select the block, click the three-dot Options button in its toolbar, and choose Delete; the block disappears and the content around it moves up.
This works the same for paragraphs, images, buttons, columns and any other block in posts, pages and templates.
If you cannot see the toolbar, click directly on the block's content first. The toolbar appears just above it.
Some sites use the top toolbar setting, which pins block tools to the top of the screen. In that case the options menu sits in the bar at the top instead of above the block.
Our explainer on the WordPress block editor shows where the toolbar and sidebar sit.
What is the keyboard shortcut to delete a block?
The shortcut appears next to Delete in the block's options menu; select the block and press it to remove the block without opening the menu.
Shortcuts can change between WordPress versions, so the menu is the most reliable place to check yours.
The WordPress documentation lists all block editor keyboard shortcuts, including those for selecting and moving blocks.
Pressing Backspace or Delete inside an empty block also removes it and moves your cursor to the previous block.
How do you select a whole block with the keyboard?
Press Escape while typing to switch from editing text to selecting the whole block, then use the delete shortcut or the arrow keys to move between blocks.
This is handy for long posts. You can tidy up blocks without reaching for the mouse.
Does deleting an Image block delete the file?
No. Removing an Image, Gallery or File block only takes it off the page; the file stays in the Media Library until you delete it there.
That is useful if you use the same image elsewhere. To free space, delete unused files from Media > Library after checking they are not used on other pages.
How do you delete a block using List View?
Open List View from the editor's top toolbar, find the block in the outline, open its options menu and choose Delete, which is the easiest way to remove nested blocks.
List View shows groups, columns and their inner blocks as a tree. That helps when blocks sit inside other blocks.
Clicking an item in List View selects that exact block on the canvas.
It also reveals empty or hidden blocks, such as spacers, that are hard to click on the page itself.
How do you delete several blocks at once?
Click the first block, hold Shift and click the last block to select everything between them, then use the options menu or shortcut to delete them all together.
You can also click and drag across text in several blocks to select them.
In List View, Shift-click selects a range of blocks in the outline.
Selected blocks show a highlight on the canvas. Check the selection before deleting. A selection that spills into the next section is easy to miss on long pages.
How do you delete a block inside columns or groups?
Select the inner block itself, not the parent, then delete it; to remove the whole container, select the parent group or columns block and delete that instead.
Use the Select parent button in the block toolbar to jump from an inner block to its container.
List View makes the parent and child relationship clear, so you delete the right level.
Deleting a parent removes everything inside it. Ungroup first if you want to keep the inner blocks.
Why can't you delete a block?
The block may be locked, part of a template or synced pattern, controlled by a plugin, or your user role may not allow editing that content or template.
A lock icon in the toolbar or List View means the block is locked against removal or moving.
Some themes and plugins lock blocks on purpose to protect layouts.
If the editor itself misbehaves, our guide on the WordPress editor not working covers common editor errors.
How do you remove a block lock?
Select the block, open the options menu, choose Lock to open the lock settings, turn off the prevent removal option, and the block can then be deleted.
Only administrators and editors usually see these lock controls.
The Block Editor Handbook explains how developers lock blocks and templates.
How do you delete blocks in a synced pattern?
Edit the original pattern to remove a block everywhere it is used, or detach the pattern on one page to delete blocks only there without affecting other pages.
Changes to a synced pattern apply to every place it appears. That is powerful but easy to forget.
Our guide on synced patterns explains how editing and detaching work.
To remove the whole pattern from one page, select it and delete it like any other block.
How do you delete blocks in headers, footers and templates?
In a block theme, go to Appearance > Editor, open the template or template part, select the block and delete it, then save the template.
Template changes affect every page using that template.
Our guide on editing the header in a block theme walks through editing template parts.
If you remove something important, you can reset the template to the theme's original from its options menu.
How do you delete widget blocks in a classic theme?
Go to Appearance > Widgets, select the block in the widget area, open its options menu and choose Delete, then click Update to save the widget area.
Classic themes that use block-based widgets follow the same pattern as the post editor. Older themes with the Classic Widgets plugin use a drag-out or Delete link instead.
How do you get a deleted block back?
Use Undo immediately with Ctrl+Z or Cmd+Z, or the Undo button in the top toolbar; if you already saved, restore an earlier revision from the post's revisions screen.
Undo works step by step through your recent changes in the current session.
Revisions save versions of posts and pages each time you update. Compare them and restore the one you need.
Templates in the Site Editor also keep revisions, which helps after accidental deletions there.
How do you fix blocks from a removed plugin?
When a block plugin is deactivated, its blocks show a message that the block is missing or unsupported, and you can delete them, keep them as HTML or reactivate the plugin.
Decide before deleting. Reactivating the plugin brings the blocks back to normal.
Convert to HTML keeps the content visible even without the plugin, but you lose easy editing.
For many affected posts, a search in your content for the block name helps you find them all.
How do you delete blocks on a phone or tablet?
In the WordPress mobile app or a mobile browser, tap the block to select it, tap the options button in its toolbar and choose Remove block or Delete.
Small screens make nested blocks hard to tap. Use the parent selector or zoom out to pick the right one.
Can you hide blocks you never use?
Yes. Open the editor's Preferences, go to the Blocks section and untick blocks you do not want in the inserter; this hides them for you without deleting existing content.
Hiding blocks keeps the inserter tidy for writers.
It does not affect other users, and existing blocks of that type stay on the page.
Developers can unregister blocks for everyone with code, which is better for client sites.
If you find a bug where blocks cannot be removed, the editor is developed in public in the Gutenberg repository on GitHub, where you can search existing reports.
What is the safest way to delete blocks on live pages?
Work in a draft or preview, delete carefully with List View on complex layouts, check the page on mobile, and keep revisions enabled so you can roll back.
The editor is keyboard friendly, which helps everyone. The W3C guidance on keyboard accessibility explains why every action should work without a mouse.
Our guide on editing a page in WordPress covers saving drafts and previewing before you publish changes.
Frequently asked questions
How do I remove a block in WordPress?
Click the block, open the three-dot Options menu in its toolbar and choose Delete. You can also select it in List View and delete it from there.
How do I delete multiple blocks at once?
Click the first block, hold Shift and click the last one to select the range, then choose Delete from the options menu or use the keyboard shortcut.
Why can't I delete a block in WordPress?
It may be locked, part of a synced pattern or template, controlled by a plugin, or your user role may not allow editing it. Check for a lock icon first.
How do I undo deleting a block?
Press Ctrl+Z on Windows or Cmd+Z on a Mac, or click Undo in the top toolbar. If you already saved, restore an earlier revision.
Does deleting a block delete the image file?
No. Deleting an Image block only removes it from the page. The file stays in the Media Library until you delete it there.
Sources
- Keyboard shortcuts in the block editor WordPress.org Documentation
- Block Editor Handbook WordPress Developer Resources
- Understanding Keyboard W3C WAI
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


