> For the complete documentation index, see [llms.txt](https://docs-epc.gitbook.io/ncs-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-epc.gitbook.io/ncs-documents/database-as-a-service/sql-database/manage-sql-database-schema/delete-database-schema.md).

# Delete Database Schema

ลบ Database Schema ที่ไม่ได้ใช้งาน ออกจาก Database Instance

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

## Instructions

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

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

<figure><img src="https://1352697161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2BYmWTMiaonrEL8QBP2%2Fuploads%2F5OYgh8HxVRSEU8dFWX8v%2Fimage.png?alt=media&amp;token=7ad6b58f-8185-431c-832f-50ba73fec80d" alt=""><figcaption><p>เข้าสู่หน้า Database Instances</p></figcaption></figure>

### 2. เลือกคำสั่ง Delete Database Schema&#x20;

เข้าไปที่หน้า Database Instance Detail ของ Database Instance เลือกคำสั่ง Delete Database Schema ได้จากปุ่ม Delete ภายใต้ปุ่ม “MORE” ของ Database Schema ที่ต้องการทำคำสั่ง

<figure><img src="https://1352697161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2BYmWTMiaonrEL8QBP2%2Fuploads%2FFykmNdL8yThdfKOaBkOL%2FScreen%20Shot%202566-12-20%20at%2014.20.36.png?alt=media&amp;token=0ee8518b-0bdc-47f7-a6cb-cb0b4b5b2a04" alt=""><figcaption><p>เลือกคำสั่ง Delete Database Schema</p></figcaption></figure>

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

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

<figure><img src="https://1352697161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2BYmWTMiaonrEL8QBP2%2Fuploads%2FGWJ9Yaj99zZF9vXjELFj%2FScreen%20Shot%202566-12-20%20at%2014.21.32.png?alt=media&amp;token=18acbd86-4c18-47fc-8751-cbe604e11f31" alt=""><figcaption><p>ยืนยันคำสั่ง Delete Database Schema</p></figcaption></figure>

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

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

<figure><img src="https://1352697161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq2BYmWTMiaonrEL8QBP2%2Fuploads%2FdZBCkW0ump6QRR71IlAW%2FScreen%20Shot%202566-12-20%20at%2014.22.31.png?alt=media&amp;token=e1448ae7-1342-4223-92c4-da9b74fee375" alt=""><figcaption><p>Database Schema ถูกลบสำเร็จ</p></figcaption></figure>
