# s3-remove-files-plugin

> This plugin is used to remove files from s3

Latest version **0.0.5** (published 2018-12-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install s3-remove-files-plugin
pnpm add s3-remove-files-plugin
yarn add s3-remove-files-plugin
bun add s3-remove-files-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2018-12-29 |
| First published | 2018-12-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vladimir Varavva |
| Maintainers | acid-base |
| Keywords | s3, s3 remove files |

## Links

- npm: https://www.npmjs.com/package/s3-remove-files-plugin
- Repository: https://github.com/Acid-base/s3-remove-files-plugin
- Homepage: https://github.com/Acid-base/s3-remove-files-plugin#readme
- Issues: https://github.com/Acid-base/s3-remove-files-plugin/issues
- npm.io page: https://npm.io/package/s3-remove-files-plugin

## Dependencies (1)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.382.0

## Recent versions

- 0.0.5 (latest) — 2018-12-29
- 0.0.4 — 2018-12-29
- 0.0.3 — 2018-12-29
- 0.0.2 — 2018-12-29
- 0.0.1 — 2018-12-29

## README

# NOT READY!

# S3 Remove Files Plugin

Webpack plugin for remove files from s3.

## Install

```bash
npm install --save-dev s3-remove-files-plugin
```

## Usage

In your `webpack.config.js`

```javascript
const S3RemoveFilesPlugin = require('s3-remove-files-plugin');

module.exports = {
    // ...
    plugins: [
        new S3RemoveAssetsPlugin({
            config: {
                accessKeyId: process.env.S3_CREDENTIALS_ACCESS_KEY_ID,
                secretAccessKey: process.env.S3_CREDENTIALS_SECRET_ACCESS_KEY,
                region: process.env.S3_REGION
            },
            params: {
                Bucket: process.env.S3_BUCKET,
                Prefix: process.env.S3_BASE_PATH + 'assets'
            },
            include: /\.(js|css|gz)/,
            var: 'BUILD_NUMBER', // variable name
            count: 5 // number of builds to save
        })
    ]
};
```

---
_Source: https://npm.io/package/s3-remove-files-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
