NAME

delete - Advanced file and directory deletion

SYNOPSIS

delete [OPTIONS] < INPUT-LINE

delete --generate-id

DESCRIPTION

The delete command can be used to script multi-line delete operations as a single batch.

Each path is assumed to be URL-encoded; in particular any spaces and non-ASCII characters must be encoded. Each path may have a shell-compatible wild card pattern in its final component. Type "man glob" for details.

Symbolic links are never followed - only unlinked (deleted).

Automatic Endpoint Activation

If an endpoint is not activated, this command will attempt to auto-activate it. Otherwise, the command will fail, and direct the user to run endpoint-activate and/or display a web URL for OAuth activation.

Endpoint Naming

This command supports the following endpoint identification formats:

  • UUID: "7865988a-aeb3-4e55-b8cd-938c258e7854"

  • Bookmark: "^test_bookmark". The bookmark name must be prepended with a "^" character. The bookmark name may have URL-escaped characters. If the bookmark name contains a "/", it must be URL-escaped as "%2F".

    Note:When a bookmark is used, the bookmark’s path is prepended to the input path.
  • Legacy Name: "bob#test_endpoint". This contains the user who owns the endpoint and the endpoint legacy name.

  • Unqualified Legacy Name: "test_endpoint". The user name defaults to the current logged in user.

INPUT LINE

An INPUT-LINE has the following format:

$ endpoint/path

OPTIONS

-r

Remove directories and their contents recursively. Note that path(s) do not have to be directories and symlinks are never followed.

-f

Ignore nonexistent files and directories. The operation succeeds if the path does not exist.

--label LABEL

Set the task’s label. The label can be displayed and searched for in commands such as status and details. See labels(7) for more details on labels.

-d DEADLINE

Set the task’s deadline. If the task has not completed by the deadline it will be automatically canceled. A suffix of "m", "h", or "d" may be specified to indicate minutes, hours, or days. If a unit suffix is not given it is assumed to be minutes. Example: "30m", "4h", "1d".

If a deadline is not explicitly set, Globus Online will give the task a flexible deadline that is automatically extended as long as it is making progress.

--unsafe

Remove checks for possible human errors such as deleting all files in / and /~/. Only use this option if necessary and always be careful when issuing delete commands.

--generate-id
--taskid TASKID

See transfer(1) for details on atomic task submission.

EXAMPLES

Remove files matching patterns:

$ delete
go#ep1/~/Downloads/*.tmp
go#ep1/~/Downloads/*.txt
<EOF>

© 2010- The University of Chicago Legal