r-sel Verified current stable Not installed? Filesystem

R Sel / Remove Selected Files

Remove Selected Files

Removes specified files from the filesystem, provided they are selected in the interface.

$
Terminal
<r>sel

When To Use

During batch cleanup of temporary or obsolete files to optimize storage usage.

Pro Tip

Leverage the '--force' flag to bypass confirmation prompts for efficiency during bulk deletions.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
$ r-sel
Selected files:
  1. temp1.log
  2. temp2.log
  3. obsolete.txt

Removing selected files...
✅ Files removed successfully.

Anatomy of Output

Understanding the result

Files Deleted: 3 Deletion Result

Indicates the number of files successfully removed.

Storage Space Freed: 256MB Storage Stats

Displays the amount of space regained after deletion.

Operation Status: Complete Status Notification

Confirms operation execution is complete.

Power User Variants

Optimized versions

r-sel 2

Removes the file associated with selection identifier 2.

r-sel --force 3

Forcibly removes selected file associated with identifier 3.

Troubleshooting

Common pitfalls

Error: No files selected for deletion.

Solution: Make sure to select files before execution.

Error: Permission denied for file removal.

Solution: Check user permissions for the files you are trying to delete.

Error: Invalid selection identifier provided.

Solution: Verify the selection identifier matches the expected format.

Command Breakdown

What each part is doing

<r>sel
Base Command
The executable that performs this operation. Here it runs R Sel before the shell applies any redirect operators.

How To Run

Execution path

  1. Step 1

    Run the command: `r-sel` to display selected files.

  2. Step 2

    Verify files have been removed by checking the directory with `ls -l` or `du -h`.

  3. Step 3

    Ensure storage is optimized by using `df -h` to check available space.

Alternative Approaches

Comparable commands in other tools

Alternative filesystem tools for the same job.