Remove Text Rule
Unwanted prefixes or suffixes in your filenames? Batch delete specific content or clean up by position.
What This Feature Can Do for You
- Clean up camera exports: Tired of seeing
IMG_orDSC_prefixes everywhere? Remove them all at once - Remove date prefixes: Filenames starting with
20231201_that you want to batch clean - Delete version suffixes: Remove
_v1.0,_finalat the end of filenames - Delete unwanted words: Batch remove words like
Copy,Backup,(1)from filenames
Quick Start (3 Steps)
- Click "Add Rule" button β Select "Remove"
- Choose removal method:
- Remove string: Enter the text you want to delete (e.g.,
IMG_) - Remove by position: Enter starting position and how many characters to delete (e.g., start at position 1, delete 9 characters)
- Remove filename: Keep only the extension, delete entire filename (rarely used)
- Remove string: Enter the text you want to delete (e.g.,
- Preview first, then apply if everything looks correct to avoid accidentally messing up multiple files
Detailed Examples
Example 1: Remove a common prefix
β Original files: IMG_20231201.jpg, IMG_20231202.jpg, IMG_20231203.jpg...
π« Problem: Camera exports a bunch of files with IMG_ prefix, want to remove them all
β
Steps:
- Removal method: Select "Remove string"
- Remove:
IMG_ - Scope: All (default)
β
Result: 20231201.jpg, 20231202.jpg, 20231203.jpg...
Why this works: The string removal mode will delete all occurrences of
IMG_in one go, while the.jpgextension stays untouched.
Example 2: Remove date prefix by position
β Original files: 20231201_report.pdf, 20231202_summary.pdf
π« Problem: All filenames start with a date 20231201_ (9 characters), want to batch remove them
β
Steps:
- Removal method: Select "Remove by position (closed interval)"
- From:
1 - Length:
9 - Count from right: Unchecked (count from left by default)
β
Result: report.pdf, summary.pdf
Why this works: When you know the content to remove is always at the beginning and has the same length, position-based removal is more precise and avoids accidentally deleting the same content elsewhere in the filename.
Example 3: Remove version number from the right
β Original files: document_v1.0.docx, report_final.docx
π« Problem: Filenames end with version numbers _v1.0 (5 characters) or _final (6 characters), want to remove them (assuming all are 5 characters)
β
Steps:
- Removal method: Select "Remove by position (closed interval)"
- From:
1 - Length:
5 - Count from right: Checked
β
Result: document.docx (removed _v1.0)
Why this works: Counting from the right is better for removing content at the end of filenames - no need to calculate positions from the left, much more intuitive.
Parameters to Fill In
Basic Settings
- Removal Method
Choose how you want to delete:
- Remove string: Enter specific text to delete (e.g.,
IMG_,Copy) - Remove by position (closed interval): Enter starting position and number of characters to delete
- Remove filename: Completely remove the filename part, keep only extension (rarely used)
- Remove string: Enter specific text to delete (e.g.,
If you selected "Remove string"
- Remove
The text you want to delete, like
IMG_,Copy,Backup(This cannot be empty, otherwise nothing will be deleted)
If you selected "Remove by position (closed interval)"
-
From Starting position, minimum is
1(first character) (A live preview shows below: how1234567890will change) -
Length How many characters to delete, minimum is
1(e.g., enter5to delete 5 characters)
Advanced Options (Optional, defaults work fine)
-
Scope (only for string removal) By default, all matches in the filename will be deleted. If you only want to delete the first or last occurrence, select here:
- All (default): Delete all matches
- First: Only delete first occurrence
- Last: Only delete last occurrence
-
Case sensitive (only for string removal) Unchecked by default, both
IMGandimgwill be deleted. When checked,IMGandimgare treated as different words. -
Count from right (only for position removal) Unchecked by default, position counts from the first character on the left. When checked, position counts from the first character on the right (suitable for removing content at the end of filenames).
-
Ignore extension Checked by default, only processes the filename part, leaving
.jpg,.pngextensions untouched. If you really need to delete content in the extension, uncheck this option.
FAQ
β How do I delete a specific piece of text?
Method 1 (Quick): Select "Remove string", enter what you want to delete in the "Remove" field.
Example: Delete Copy from filenames
- Removal method: Remove string
- Remove:
Copy
Method 2 (More precise): If the content to remove is at a fixed position (like first 9 characters, or last 5 characters), use "Remove by position (closed interval)" to avoid accidental deletions.
β Position removal not working correctly?
-
Check left vs right counting
- Unchecked "Count from right": Position
1is the first character (from left) - Checked "Count from right": Position
1is the last character (from right)
- Unchecked "Count from right": Position
-
Use the live preview After entering "From" and "Length", the interface shows how
1234567890will change - check if it matches your expectation. -
Make sure "Ignore extension" is checked If unchecked, position calculation includes the
.jpgextension, making it easy to miscalculate.
β Extension got deleted?
Make sure "Ignore extension" is checked (it's checked by default).
This way, removal only affects the filename part, and .jpg, .png extensions are automatically protected.
If you actually need to delete content in the extension (like changing .jpeg to .jpg), you can temporarily uncheck this option.
β String removal not working?
-
Check if the text to delete is correct Copy and paste the actual content from the filename to avoid typos or extra spaces
-
Try unchecking "Case sensitive" Maybe you entered
img, but the filename hasIMG -
Check for invisible characters Some filenames contain special spaces or symbols that are invisible to the eye
-
Check the scope setting If you selected "First" or "Last", it might have only deleted part of the matches - try changing to "All"
Important Notes:
- β οΈ Don't apply without previewing: Mistakes are hard to undo, make previewing a habit
- β οΈ Position calculation can be confusing: When counting from right, position
1is the last character, not the first - β οΈ Before modifying many files: Test with a few files first, confirm it works, then select all
Pro Tips
- β
Combine with Insert Text: First remove old prefix (like
IMG_), then add new prefix (like2024-Trip-) - β Combine with Find & Replace: First remove large chunks of unwanted content, then use find & replace to fine-tune the rest
- β
Combine with Sequence Generator: After removing original numbering (like
001-), regenerate uniform sequence numbers - β Multiple position removals: For complex filenames, you can remove different positions multiple times - positions recalculate after each removal
What to Check Out Next?
- Insert Text: Add new text at specified positions after removing content
- Find & Replace: If content to remove is irregular, use replace to delete (replace with empty)
- Clean Invalid Characters: Clean up extra spaces or special characters that may appear after removal
- Sequence Generator: Regenerate uniform sequence numbers after removing original numbering