Delete a file
delete a file in linux | remove a file | delete a single file from the shell | linux rm file | rm | delete | filesWarning, destructive. This command deletes, overwrites or changes data in a way that cannot easily be undone. Check every placeholder carefully and make a backup first.
rm -i -- /var/www/vhosts/example.com/httpdocs/old.zipDeletes the given file. -i asks before deleting, -- prevents a file name starting with a hyphen from being read as an option. Directories have their own entry using rm -r.
Note: The shell has no trash bin. Deleted files only come back from a backup.
Also searched as
- delete a file in linux
- remove a file
- delete a single file from the shell
- linux rm file