Delete Text Before Cursor on Mac: 5 Fast Ways
In this article
To delete text before the cursor on a Mac, press the Delete key (labeled ⌫ or Backspace), which removes the character to the left. For faster deletion, hold Option while pressing Delete to remove the entire word to the left, or press Command + Delete to delete everything from the cursor to the start of the line. This guide covers every built-in method, how to remap keys if you prefer a Windows-style forward delete, and what to do when Delete doesn’t behave as expected.
Why the Mac Delete Key Works Differently
On a standard Mac keyboard, the key labeled Delete (and marked with an ⌫ symbol) functions as a backspace. It deletes the character immediately to the left of the blinking cursor. This is the opposite of the Windows PC keyboard, where the key labeled Backspace does the same thing, but there is also a separate Delete key that removes characters to the right of the cursor.
Apple’s naming convention has caused confusion for decades. To delete text to the right of the cursor on a Mac, you must use the Forward Delete function, which is not labeled on most keyboards. You can trigger it by holding the Fn (Function) key and pressing the Delete key. On MacBooks with the Touch Bar, the on-screen Delete key also acts as a backspace; the forward delete option appears when you hold Fn.
The 5 Built-In Ways to Delete Text Before the Cursor
All of these methods work in any standard text field, including Pages, TextEdit, Notes, Safari’s address bar, and most third-party apps.
- Delete one character to the left: Press the
Deletekey (⌫). This removes the character immediately before the cursor. - Delete one word to the left: Hold the
Option(Alt) key and pressDelete. This removes the entire word (including the trailing space) to the left of the cursor. Repeat to delete multiple words. - Delete to the start of the line: Hold the
Command(⌘) key and pressDelete. This deletes all text from the cursor back to the beginning of the current line or paragraph, depending on the app. - Delete to the start of the document: Hold
Command+Shiftand pressDelete. This removes everything from the cursor to the very top of the document or text field. - Forward delete (delete to the right): Hold the
Fnkey and pressDelete. This removes the character to the right of the cursor, mimicking the Windows Delete key. Combine withOption(Fn + Option + Delete) to delete the word to the right, orCommand(Fn + Command + Delete) to delete to the end of the line.
How to Get a True Forward Delete Key
If you frequently need to delete text to the right of the cursor, you can remap a key to act as a forward delete. The most common approach is to use a third-party utility like Karabiner-Elements or BetterTouchTool, which let you assign any key to the “Forward Delete” action. For example, you could map the Caps Lock key (when pressed alone) to Forward Delete, or use the Escape key if you rarely use it.
Alternatively, in many Apple apps, you can enable the “Use F1, F2, etc. keys as standard function keys” setting in System Settings > Keyboard, but this does not create a forward delete key. The only built-in way is the Fn + Delete combination.
Common Problems and Fixes
Delete key deletes to the right instead of left: This happens if you’ve enabled “Key Repeat” settings incorrectly or if you’re using a Windows keyboard that sends a different scancode. On a Windows keyboard connected to a Mac, the key labeled Backspace works as backspace, but the key labeled Delete (often with “Del” on it) sends the forward delete command. If you want the Windows Delete key to act as a backspace, you can remap it with Karabiner-Elements.
Option+Delete deletes only part of a word: This occurs when the cursor is in the middle of a word. The Mac deletes from the cursor to the start of the current word, not the entire word. To delete the whole word, first press the left arrow key to move to the start of the word, then press Option+Delete again.
Command+Delete doesn’t work in some apps: Some text editors (like certain code editors) use Command+Delete for “Delete Line” instead of “Delete to Start of Line.” In that case, try pressing Command+Shift+Left Arrow to select the text to the start of the line, then press Delete.
Text is not deleted but replaced: If you have text selected and press Delete, it deletes the selection. If you press a character key instead, it replaces the selection. This is standard behavior, but if you accidentally replace text, use Command+Z to undo.
Deleting Text in Specific Apps
While the shortcuts above work in most apps, some have their own variations:
- Terminal: In the macOS Terminal, Option+Delete may not work by default. You can enable it in Terminal > Settings > Profiles > Keyboard, and check “Use Option as Meta key.” Then Option+Delete will delete the previous word.
- Xcode: Xcode uses Control+Delete to delete the word to the left (instead of Option+Delete). Command+Delete deletes the entire line.
- Microsoft Word: Word for Mac follows the standard shortcuts, but also supports Control+Delete for word deletion if you’ve enabled the “Use smart cut and paste” option.
Using the On-Screen Keyboard
If you’re using a Mac with a Touch Bar, the virtual Delete key appears on the Touch Bar when you’re in a text field. It acts as a backspace. To forward delete, hold the Fn key on the physical keyboard and the Touch Bar will show a forward delete key. On iPads with a Magic Keyboard, the same Fn+Delete combo works.
Alternative: Use a Mouse or Trackpad
If you prefer not to use keyboard shortcuts, you can select the text you want to delete with the mouse or trackpad, then press the Delete key. To select a word quickly, double-click it; to select a paragraph, triple-click. Then press Delete to remove the selection. This works in every app and is often faster than holding multiple keys.
Frequently Asked Questions
Why does my Mac Delete key not delete forward?
Because Apple labels the backspace key as “Delete.” To delete forward, you must hold the Fn key and press Delete. This is a long-standing design choice; there is no dedicated forward delete key on most Mac keyboards.
How do I delete an entire word to the left on a Mac?
Hold the Option key and press Delete. This removes the word to the left of the cursor. If the cursor is in the middle of a word, it deletes from the cursor to the start of that word.
What is the shortcut to delete to the beginning of a line on Mac?
Press Command+Delete. This deletes all text from the cursor to the start of the current line. In some apps, it deletes to the start of the paragraph.
Can I make the Delete key work like a Windows keyboard?
Yes, you can use a third-party app like Karabiner-Elements to remap keys. For example, you can map the Caps Lock key to act as a forward delete, or swap the behavior of the Delete key so it deletes to the right by default.
Why does Option+Delete sometimes delete only part of a word?
Because the cursor is inside the word. The shortcut deletes from the cursor to the start of the current word. If you want the entire word, move the cursor to the end of the word first, then press Option+Delete.
Does the Delete key work the same in all Mac apps?
Mostly, but some apps (like Xcode or Terminal) override the shortcuts. Check the app’s menu under Edit > Delete to see the available options and their keyboard shortcuts.