--- title: "Setting Lifecycle Policies Using Postman" slug: "how-to-set-lifecycle-policies-using-postman" updated: 2026-01-06T23:15:59Z published: 2026-01-06T23:15:59Z canonical: "docs.wasabi.com/how-to-set-lifecycle-policies-using-postman" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.wasabi.com/llms.txt > Use this file to discover all available pages before exploring further. # Setting Lifecycle Policies Using Postman Lifecycle policies can be a good way to manage the lifespan of your data stored within your buckets. You can implement lifecycle rules for compliance, internal policy, or general housekeeping. Lifecycle policies can be managed in the [Console](https://docs.wasabi.com/docs/lifecycle), with [AWS CLI](https://docs.wasabi.com/docs/how-to-set-lifecycle-policies-using-the-aws-cli) commands, or using API requests with an application such as Postman (as described in this article). [Postman](/v1/docs/how-do-i-use-postman-with-wasabi) is an API platform for building and using APIs. If you do not have experience with the application, review the Postman [Getting Started](https://learning.postman.com/docs/getting-started/overview/) guide. You will need to [create an account](https://learning.postman.com/docs/getting-started/postman-account/#signing-up-for-a-postman-account) to use the Postman platform. ## Lifecycle Configuration Elements Lifecycle rules contain the following elements: ```powershell                                                                         ``` - ID—The ID element uniquely identifies a rule. - Filter—A lifecycle rule can apply to all or a subset of objects in a bucket based on the element that you specify in the lifecycle rule. See below for filter examples. - Status—This element value can be Enabled or Disabled. If a rule is disabled, Wasabi does not perform any of the actions defined in the rule. - Action—You can direct Wasabi to perform specific actions in an object's lifetime by specifying one or more of the following predefined actions in a lifecycle rule. ## Lifecycle Actions Wasabi makes use of the following lifecycle actions: - Expire the current version of objects. For versioned buckets, a delete marker is added, and the current version of an object is retained as a noncurrent version. For non-versioned buckets, the object is permanently removed at the end of the specified period. - Permanently delete noncurrent versions of objects. - Delete expired object delete markers. - Delete incomplete multipart uploads. ## Filter Example Rules can be filtered by prefixes and sizes of objects. Wasabi requires the Prefix field. ```powershell        logs/                An empty Filter of Prefix will apply to the whole bucket.                        or                                Size:        Please note that the size is in Bytes.                        1        21474836480                 ``` ## Configuring Postman In the following example, the policy is applied to a bucket in the us-east-2 region. Refer to [Service URLs for Wasabi's Storage Regions](https://docs.wasabi.com/docs/service-urls-for-wasabis-storage-regions-2) for a list of all available service endpoints/regions. 1. Click the **+** symbol to start a new API request. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/image-O7CV358N.png) 2. On the Authorization tab, select **AWS Signature** from the drop-down. 3. Confirm that the authorization data is added to the Request Headers. 4. Enter your access and secret keys. 5. Choose the region in which the bucket is located. 6. Enter **s3** as the Service Name. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14807185546139.png) ## Setting Actions The actions described in this section use examples in which the policy is applied to a bucket in the us-east-2 region. Refer to [Service URLs for Wasabi's Storage Regions](https://docs.wasabi.com/docs/service-urls-for-wasabis-storage-regions-2) for a list of all available service endpoints/regions. ### Expiring the Current Version of Objects 1. Change the Request Type from GET to PUT, and enter the service URL for your bucket. ```powershell https://s3.us-east-2.wasabisys.com/my-lifecycle-bucket?lifecycle ``` ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14807346849691.png) 2. Select the **Body** tab. Select the **raw** option and **XML** from the drop-down. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14807335941915.png) 3. Enter the following XML and click **Send**. ```powershell                                ExpireCurrentVersions                                                                Enabled                                1                                                 ``` ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14816865746587.png) If the request was successful, you will see a 200 response with an empty body. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14807549717915.png) ### Permanently Deleting Noncurrent Versions of Objects 1. Change the Request Type from GET to PUT, and enter the service URL for your bucket. ```powershell https://s3.us-east-2.wasabisys.com/my-lifecycle-bucket?lifecycle ``` ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14807346849691.png) 2. Select the **Body** tab. Select the **raw** option and **XML** from the drop-down. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14807335941915.png) 3. Enter the following XML and click **Send**. ```powershell                                DeleteAfterBecomingNonCurrent                                                                Enabled                                1                                                 ``` ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14816881758107.png) If the request was successful, you will see a 200 response with an empty body. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14816156530075.png) ### Deleting Expired Object Delete Markers 1. Change the Request Type from GET to PUT, and enter the service URL for your bucket. ```powershell https://s3.us-east-2.wasabisys.com/my-lifecycle-bucket?lifecycle ``` ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14807346849691.png) 2. Select the **Body** tab. Select the **raw** option and **XML** from the drop-down. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14807335941915.png) 3. Enter the following XML and click **Send**. ```powershell                                DeleteExpiredObjectDeleteMarkers                                                                Enabled                                true                                                 ``` ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14816645860123.png) If the request was successful, you will see a 200 response with an empty body. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14816700131355.png) ### Deleting Incomplete Multipart Uploads 1. Change the Request Type from GET to PUT, and enter the service URL for your bucket. ```powershell https://s3.us-east-2.wasabisys.com/my-lifecycle-bucket?lifecycle ``` ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14807346849691.png) 2. Select the **Body** tab. Select the **raw** option and **XML** from the drop-down. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14807335941915.png) 3. Enter the following XML and click **Send**. ```plaintext                                DeleteIncompleteMultipartUploads                                                                Enabled                                1                                                 ``` ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14816802473755.png) If the request was successful, you will see a 200 response with an empty body. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14816805553179.png) ## Verifying Lifecycle Rules on a Bucket You can verify lifecycle rules on a bucket with a GET request. 1. Confirm that the Request Type is GET, and enter the service URL for your bucket. ```powershell https://s3.us-east-2.wasabisys.com/my-test-bucket?lifecycle ``` 2. Leave the Body of the request empty and click **Send**. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14833498832155.png) If the request was successful, you will receive a 200 response with output similar to the following in the body. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14834500115355.png) ## Deleting Lifecycle Rules on a Bucket You can delete lifecycle rules on a bucket with a DELETE request. 1. Confirm that the Request Type is DELETE, and enter the service URL for your bucket. ```powershell https://s3.us-east-2.wasabisys.com/my-test-bucket?lifecycle ``` 2. Leave the Body of the request empty and click Send. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14835249846811.png) If the request was successful, you will receive a 204 response with an empty body. ![](https://cdn.document360.io/bef0a1ea-7768-4d5a-b520-c4fe2f7fafad/Images/Documentation/14835373973659.png)