---
name: "pegasus-cleanup"
section: "1"
platform: "linux"
package: "pegasus-wms"
version: "4.4.0+dfsg-8"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/pegasus-cleanup"
---

# pegasus-cleanup(1)

Removes files during Pegasus workflows enactment.

## NAME

pegasus-cleanup - Removes files during Pegasus workflows enactment.

## SYNOPSIS

```
pegasus-cleanup [-h][-d][-f urls]
```

## DESCRIPTION

**pegasus-cleanup** removes the files associated with the given URL. Some of the protocols it can handle are GridFTP, SRM, Amazon S3, HTTP, and file://.

Note that pegasus-cleanup is a tool mostly used internally in Pegasus workflows, but the tool can be used stand alone as well.

## OPTIONS

- **-h**, **--help**

  Prints a usage summary with all the available command-line options.

- **-f** *urls*, **--file** *urls*

  Specifies the file with URLs to clean up (one per line). If this option is not given the list of URLs will be read from stdin.

- **-d**, **--debug**

  Enables debugging output.

## EXAMPLE

```
# 1 some_site_name
echo gsiftp://somehost/some/path | pegasus-cleanup
```

## CREDENTIAL HANDLING

Credentials used for cleanup can be specified with a combination of comments in the input file format and environment variables. For example, give the input file above, pegasus-cleanup will expect either one environment variable specifying one generic credential (X509\_USER\_PROXY), or a specific one for the site named in the input file comment (X509\_USER\_PROXY\_some\_site\_name).

## AUTHORS

Pegasus Team **http://pegasus.isi.edu**
