# Delete Database Instance

ลบ Database Instance ที่ไม่ได้ใช้งานออกจาก Project โดย Database Instance ที่ถูกลบไปแล้ว จะไม่สามารถกู้คืนกลับมาใช้งานได้

## Instructions

### 1. เข้าสู่หน้า Database Instances&#x20;

เลือกรายการ “Database Instances” ที่ Sidebar จากเมนู SQL Database

<figure><img src="/files/3Ga2aJFTyy7BlmfzNusa" alt=""><figcaption><p>เข้าสู่หน้า Database Instances</p></figcaption></figure>

### 2. เลือกคำสั่ง Delete Database Instance

เลือกคำสั่ง Delete Database Instance ได้จาก 2 ที่ ดังนี้

* คำสั่ง Delete ภายใต้ปุ่ม “MORE” ของแต่ละ Database Instance ที่หน้า Database Instance

<figure><img src="/files/7INwH5b9Znl89okcasr3" alt=""><figcaption><p>คำสั่ง Delete ภายใต้ปุ่ม “MORE” ที่หน้า Database Instance</p></figcaption></figure>

* คำสั่ง Delete ภายใต้ปุ่ม “MORE” ที่หน้า Database Instance Detail

<figure><img src="/files/FxsWz8n5mcGeVcLtIwaU" alt=""><figcaption><p>คำสั่ง Delete ภายใต้ปุ่ม “MORE” ที่หน้า Database Instance Detail</p></figcaption></figure>

### 3. ทำการยืนยันคำสั่ง Delete Database Instance

หลังเลือกคำสั่ง Delete ระบบจะแสดงหน้าต่างเพื่อให้ยืนยันคำสั่ง หลังจากนั้นกดปุ่ม “DELETE” เพื่อเริ่มการ Delete Database Instance

<figure><img src="/files/wgsVDu9EuMq7CCRxtHRr" alt=""><figcaption><p>ยืนยันคำสั่ง Delete Database Instance</p></figcaption></figure>

### 4. Database Instance ที่ถูกสั่งลบจะหายไป หลังจากทำคำสั่งสำเร็จ

ระบบจะทำการ Shutdown Database Service แล้วลบ Database Instance ออกจาก Project&#x20;

<figure><img src="/files/P7p0TT9QjX3yRCOv866L" alt=""><figcaption><p>ระบบทำการ Shutdown Database Service</p></figcaption></figure>

ให้รอจนกว่า Database Instance จะหายไปจากรายการ Database Instance แสดงว่าคำสั่งสำเร็จ

<figure><img src="/files/BCCxUdTHoxOj6h7WbHZl" alt=""><figcaption><p>Database Instance ถูกลบจาก Project สำเร็จ</p></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://docs-epc.gitbook.io/ncs-documents/database-as-a-service/sql-database/manage-sql-database-instance/delete-database-instance.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.
