FG
💻 Software

Remove files from remote host using SSH

Fresh5 days ago
Mar 15, 202627226 views
Confidence Score0%
0%

Problem

I need to delete all files inside a remote directory using SSH, The directory itself must not be deleted, so @Wes' answer is not what I need. If it was a local directory, I would run .

Error Output

rm -rf dir/*

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Remove files from remote host using SSH

Low Risk

It's as simple as:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment