How can i delete files using the command line tool

1,386 views
Skip to first unread message

Guido Verhuelsdonk

unread,
Sep 2, 2015, 2:24:51 PM9/2/15
to Cyberduck
I need to remove files from a server using the command line version duck, but the help doesn't show any option for removing files from the server. Can anyone help with this or is this impossible to be done using the command line tool?


David Kocher

unread,
Sep 3, 2015, 4:01:29 AM9/3/15
to cybe...@googlegroups.com
Hi Guido,

Please run duck with ‘—help’ option. There is ‘—-delete’ to delete files from a remote server. We have updated the documentation at https://trac.cyberduck.io/wiki/help/en/howto/cli#Usage to reflect the latest options available.


— David

> On 02 Sep 2015, at 20:24, Guido Verhuelsdonk <dear...@gmail.com> wrote:
>
> I need to remove files from a server using the command line version duck, but the help doesn't show any option for removing files from the server. Can anyone help with this or is this impossible to be done using the command line tool?
>
>
>
> --
> --
> You received this message because you are subscribed to the Google Groups "Cyberduck" group. To post to this group, send email to cybe...@googlegroups.com
> To unsubscribe from this group, send email to cyberduck+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/cyberduck
> --
> Post bug reports and feature requests
> http://trac.cyberduck.ch/newticket
> --
> Support development
> http://cyberduck.ch/donate/
>
> ---
> You received this message because you are subscribed to the Google Groups "Cyberduck" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cyberduck+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Guido Verhuelsdonk

unread,
Sep 3, 2015, 5:38:37 AM9/3/15
to Cyberduck
David,

Thanks for the (online) hint, but the --help option doesn't say anything about the -D option. I dowloaded the latest version of duck just yesterday and i wouldn't see any -D option. Here is the output of the --help

Usage:duck [options...]


URLs must be fully qualified. Paths can either denote a remote file (ftps://us...@example.net/resource) or folder (ftps://us...@example.net/directory/) with a trailing slash. You can reference files
relative to your home directory with /~ (ftps://us...@example.net/~/).
Supported protocols
ftp    FTP (File Transfer Protocol)
    ftp://<hostname>/<folder>/<file>
ftps    FTP-SSL (Explicit AUTH TLS)
    ftps://<hostname>/<folder>/<file>
sftp    SFTP (SSH File Transfer Protocol)
    sftp://<hostname>/<folder>/<file>
dav    WebDAV (Web-based Distributed Authoring and Versioning)
    dav://<hostname>/<folder>/<file>
davs    WebDAV (HTTP/SSL)
    davs://<hostname>/<folder>/<file>
swift    Swift (OpenStack Object Storage)
    swift://<container>/<key>
s3    S3 (Amazon Simple Storage Service)
    s3://<container>/<key>
gs    Google Cloud Storage
    gs://<container>/<key>
azure    Windows Azure Storage
    azure://<container>/<key>
rackspace    Rackspace Cloud Files (US)
    rackspace://<container>/<key>

You can install additional connection profiles in C:\Users\Guido\AppData\Roaming\Cyberduck/Profiles

    --application <path>                  External editor application
    --copy <url> <url>                    Copy between servers
 -d,--download <url> <[file]>             Download file or folder. Denote a folder with a trailing '/'
 -e,--existing <action>                   Transfer action for existing files
                                              Resume    Append existing files (resume)
                                              Cancel     (cancel)
                                              Rename    Rename transferred files with a timestamp appended to the filename (similar)
                                              Compare    Skip files that match size, modification date or checksum (compare)
                                              Rename existing    Rename existing files with timestamp appended to filename (rename)
                                              Skip    Skip transfer of files that already exist (skip)
                                              Overwrite    Overwrite all files (overwrite)
                                         
    --edit <url>                          Edit file in external editor
 -h,--help                                Print this help
 -i,--identity <private key file>         Selects a file from which the identity (private key) for public key authentication is read
 -l,--list <url>                          List files in remote folder
 -L,--longlist                            Long list format with modification date and permission mask
 -p,--password <password or secret key>   Password
 -P,--preserve                            Preserve permissions and modification date for transferred files
    --parallel <connections>              Number of concurrent connections to use for transfers
 -q,--quiet                               Suppress progress messages
 -r,--retry <count>                       Retry failed connection attempts
    --region <location>                   Location of bucket or container
    --synchronize <url> <directory>       Synchronize folders
    --throttle <bytes per second>         Throttle bandwidth
 -u,--username <username or access key>   Username
    --udt                                 Use UDT protocol if applicable
    --upload <url> <file>                 Upload file or folder recursively
 -v,--verbose                             Print transcript
 -V,--version                             Show version number and quit
 -y,--assumeyes                           Assume yes for all prompts

David Kocher

unread,
Sep 3, 2015, 6:02:56 AM9/3/15
to cybe...@googlegroups.com
Please run duck -V to verify you are running version 4.7.2 which is the version that introduced the -D option.

— David

Iván Escobedo

unread,
Jun 15, 2017, 6:43:47 PM6/15/17
to Cyberduck, dko...@cyberduck.io
David, is there a way to delete only the files within a folder, and not the folder itself? like delete folder/*.*
Reply all
Reply to author
Forward
0 new messages