{"id":16616964,"url":"https://github.com/sabrehagen/empty-aws-bucket","last_synced_at":"2025-04-22T22:43:12.243Z","repository":{"id":57224944,"uuid":"106667885","full_name":"sabrehagen/empty-aws-bucket","owner":"sabrehagen","description":"Empty an Amazon S3 Bucket","archived":false,"fork":false,"pushed_at":"2019-01-10T07:16:13.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T05:13:32.672Z","etag":null,"topics":["aws","bucket","empty","s3"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sabrehagen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-12T08:47:40.000Z","updated_at":"2020-11-16T10:30:39.000Z","dependencies_parsed_at":"2022-08-24T10:40:16.426Z","dependency_job_id":null,"html_url":"https://github.com/sabrehagen/empty-aws-bucket","commit_stats":null,"previous_names":["sabrehagen/empty-s3-bucket"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabrehagen%2Fempty-aws-bucket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabrehagen%2Fempty-aws-bucket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabrehagen%2Fempty-aws-bucket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabrehagen%2Fempty-aws-bucket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sabrehagen","download_url":"https://codeload.github.com/sabrehagen/empty-aws-bucket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250337557,"owners_count":21414097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","bucket","empty","s3"],"created_at":"2024-10-12T02:14:49.327Z","updated_at":"2025-04-22T22:43:12.222Z","avatar_url":"https://github.com/sabrehagen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Empty S3 Bucket\n\nFor a given S3 bucket, all objects and their versions will be deleted.\n\n## Getting Started\n\n### Run\n\n```\nnpm install --save empty-aws-bucket\n```\n\n### API\n\nThe first argument is the bucket name, and the second argument is an optional config object passed to the [AWS SDK](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html#constructor-property).\n\n```\nemptyBucket(bucketName, [config]);\n```\n\n### Usage\n\n```\nconst emptyBucket = require('empty-aws-bucket');\n\nemptyBucket('my-bucket');\n\nconst awsConfig = {\n    accessKeyId: 'AKID',\n    secretAccessKey: 'SECRET',\n    region: 'us-west-2'\n};\n\nemptyBucket('other-bucket', awsConfig);\n```\n\n### Debugging\n\nThe [`AWSJS_DEBUG`](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md#21420) environment variable enables logging in `aws-sdk`. If the `AWSJS_DEBUG` environment variable is set this module will log debug information also.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabrehagen%2Fempty-aws-bucket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsabrehagen%2Fempty-aws-bucket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabrehagen%2Fempty-aws-bucket/lists"}