71 lines
2.6 KiB
Markdown
71 lines
2.6 KiB
Markdown
---
|
|
title: "rclone deletefile"
|
|
description: "Remove a single file from remote."
|
|
versionIntroduced: v1.42
|
|
# autogenerated - DO NOT EDIT, instead edit the source code in cmd/deletefile/ and as part of making a release run "make commanddocs"
|
|
---
|
|
# rclone deletefile
|
|
|
|
Remove a single file from remote.
|
|
|
|
## Synopsis
|
|
|
|
Remove a single file from remote. Unlike `delete` it cannot be used to
|
|
remove a directory and it doesn't obey include/exclude filters - if the
|
|
specified file exists, it will always be removed from its original location.
|
|
|
|
The `--backup-dir` and `--suffix` flags are honored when set.
|
|
|
|
```
|
|
rclone deletefile remote:path [flags]
|
|
```
|
|
|
|
## Options
|
|
|
|
```
|
|
-h, --help help for deletefile
|
|
```
|
|
|
|
Options shared with other commands are described next.
|
|
See the [global flags page](/flags/) for global options not listed here.
|
|
|
|
### Sync Options
|
|
|
|
Flags used for sync commands
|
|
|
|
```text
|
|
--backup-dir string Make backups into hierarchy based in DIR
|
|
--delete-after When synchronizing, delete files on destination after transferring (default)
|
|
--delete-before When synchronizing, delete files on destination before transferring
|
|
--delete-during When synchronizing, delete files during transfer
|
|
--fix-case Force rename of case insensitive dest to match source
|
|
--ignore-errors Delete even if there are I/O errors
|
|
--list-cutoff int To save memory, sort directory listings on disk above this threshold (default 1000000)
|
|
--max-delete int When synchronizing, limit the number of deletes (default -1)
|
|
--max-delete-size SizeSuffix When synchronizing, limit the total size of deletes (default off)
|
|
--suffix string Suffix to add to changed files
|
|
--suffix-keep-extension Preserve the extension when using --suffix
|
|
--track-renames When synchronizing, track file renames and do a server-side move if possible
|
|
--track-renames-strategy string Strategies to use when synchronizing using track-renames hash|modtime|leaf (default "hash")
|
|
```
|
|
|
|
### Important Options
|
|
|
|
Important flags useful for most commands
|
|
|
|
```text
|
|
-n, --dry-run Do a trial run with no permanent changes
|
|
-i, --interactive Enable interactive mode
|
|
-v, --verbose count Print lots more stuff (repeat for more)
|
|
```
|
|
|
|
## See Also
|
|
|
|
<!-- markdownlint-capture -->
|
|
<!-- markdownlint-disable ul-style line-length -->
|
|
|
|
* [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends.
|
|
|
|
|
|
<!-- markdownlint-restore -->
|