← All commands
Topic hub File Management
Windows Linux File Management Deletion

Windows del /q equivalent in Linux

Removes a file without interactive confirmation.

Windows del /q
Linux equivalents
Debian/Ubuntu same command
rm -f file
Fedora same command
rm -f file
Arch same command
rm -f file

Overview

What this command does

Removes a file without interactive confirmation.

Migration tip: Check the distro-specific rows before copying; package names and service names can differ even when the tool name is similar.

Practical tasks

Common use cases

Delete without prompting

Removes a file without interactive confirmation.

rm -f file

Delete without prompting

rm --help

Show command help when supported

man rm

Open the manual page when installed

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

rm -f file

Walkthrough

Examples with explanations

# Windows equivalent: del /q
rm -f file

Reference

Common options and variations

Command or optionUse
rm -f fileDelete without prompting
rm --helpShow command help when supported
man rmOpen the manual page when installed

Distro differences

Debian/Ubuntu vs Fedora vs Arch

The equivalent is shown for Debian/Ubuntu, Fedora and Arch. Some rows use a different package manager or helper tool where Linux distributions commonly diverge.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command rm -f file Same command on this distribution.
Fedora same command rm -f file Same command on this distribution.
Arch same command rm -f file Same command on this distribution.

Keep learning

Related File Management commands