# Editing and deleting bucket policies

### วิธีแก้ไข bucket policy

1. ไปที่หน้า **S3** > **Buckets** และเลือก bucket ที่ต้องการ
2. ด้านขวาของ bucket เลือก **Manage bucket policy**
3. ในส่วนของ **Manage bucket policy** สามารถทำตามได้ดังนี้
   * เพิ่ม statement ใหม่ โดยการกด Add
   * แก้ไข statement โดยการกดที่ไอคอนดินสอ
   * ลบ statement โดยการกดที่ไอคอนถังขยะ
4. กด **Save** เพื่อบันทึกข้อมูลที่มีเปลี่ยนแปลง<br>

   <figure><img src="/files/0jiMTbbWs7hhLZantsWg" alt=""><figcaption></figcaption></figure>

### วิธีลบ policy ออกจาก bucket

1. ไปที่หน้า **S3** > **Buckets** และเลือก bucket ที่ต้องการ
2. ด้านขวาของ bucket ไปที่แท็บ **Bucket policy**
3. กดปุ่ม : และเลือก **Delete**
4. ยืนยันและกด **Delete**<br>

   <figure><img src="/files/DLuHGGdfXU8MwU4ePLuO" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://readyidc.gitbook.io/readyidc-docs/readme/s3-resources/managing-buckets/managing-bucket-policies/editing-and-deleting-bucket-policies.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
