FG

Remove file without asking

Fresh3 days ago
Mar 15, 2026444283 views
Confidence Score1%
1%

Problem

How can I remove a file without asking the user if he agrees to delete the file? I am writing shell script and use rm function, but it asks "remove regular file?" and I really don't need this.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Remove file without asking

Low Risk

You might have aliased to so try this: To see your aliases you can run .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment