> 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/internet-nat-gateway/managing-internet-nat-gateway/delete-nat-gateway.md).

# Delete NAT Gateway

## Prerequisite

* ต้องมียอดคงเหลือใน Project มากกว่า 0 บาท หากไม่มีเงินอยู่ใน Project ศึกษาวิธีเติมเงินได้ที่ [ขั้นตอนการเติมเงินเข้าสู่ Project](/ncs-documents/nipa-cloud-space-overview/billing-and-wallet/topup-a-project-wallet.md)
* มี NAT Gateway ที่ไม่ต้องการใช้งานแล้ว

## Instructions

{% hint style="info" %}
NAT Gateway ที่ลบได้ จะต้องไม่มี NAT Connector Attach อยู่
{% endhint %}

ขั้นตอนการลบ NAT Gateway ประกอบจาก 2 ขั้นตอนหลัก

1. Detach / Delete NAT Connector
2. Delete NAT Gateway

### 1. Detach และ Delete NAT Connector

เพื่อลบ NAT Gateway ต้องทำให้แน่ใจว่าไม่มี NAT Connector Attach อยู่เสียก่อน โดยสามารถ Detach ออกจาก NAT Gateway โดยตรงหรือลบ NAT Connector ไปเลย

{% hint style="warning" %}
**Warning**: การลบ NAT Connector จะส่งผลกระทบกับทุกๆ NAT Gateway ที่ Attach เอาไว้
{% endhint %}

โดยใน Tutorial นี้จะนำเสนอการ Detach NAT Connector ก่อนที่จะลบออกไปเลย

#### 1. เข้าสู่ Project

เข้าสู่หน้า Project Detail จากการเลือก Project ที่ต้องการที่หน้า Projects Management

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

#### 2. เข้าสู่หน้า NAT Gateway

ที่แถบเมนูทางซ้าย คลิกเลือกเมนู​ INTERNET NAT GATEWAY > NAT Gateways เพื่อเข้าสู่หน้า NAT Gateway List

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

#### 3. เข้าหน้า Detach NAT Connector

{% hint style="info" %}
หากไม่ต้องการใช้ NAT Connector นี้บน NAT Gateway อื่น สามารถข้ามไปที่[ขั้นตอนการ Delete NAT Connector](#id-5.-nat-connector) ได้เลย
{% endhint %}

บน NAT Gateway ที่ต้องการลบ

1. คลิกที่ "\* NAT Connector" ใน Column Attachments เพื่อแสดงรายการ NAT Connector ที่ Attach อยู่
2. บน NAT Connector ที่ต้องการลบ ให้คลิกปุ่ม Detach เพื่อเข้าหน้า Detach NAT Connector

<figure><img src="/files/9gMsapQg8HOSeiDGMkMs" alt=""><figcaption></figcaption></figure>

#### 4. ทำการ Detach NAT Connector

คลิกปุ่ม Detach เพื่อเริ่มทำการ Detach

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

#### 4. Detach สำเร็จ

เมื่อ Detach เสร็จสิ้น NAT Connector จะหายไปจาก Attachments ของ NAT Gateway

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

{% hint style="info" %}
เมื่อถึงขั้นตอนนี้ก็จะสามารถ Delete NAT Gateway ได้แล้ว ข้ามไปที่[ขั้นตอนการ Delete NAT Gateway](#id-2.-delete-nat-gateway)
{% endhint %}

#### 5. เข้าสู่หน้า NAT Connector

ที่แถบเมนูทางซ้าย คลิกเลือกเมนู​ INTERNET NAT GATEWAY > NAT Connector เพื่อเข้าสู่หน้า NAT Connector List

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

#### 6. เข้าหน้า Delete NAT Connector

ที่ NAT Connector ที่ต้องการลบ ให้คลิกที่ Icon <img src="/files/8zJh3Wu43ssJYrALESlP" alt="" data-size="line"> ที่ Column Action และเลือก Delete

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

#### 7. ทำการ Delete NAT Connector

ในหน้า Delete NAT Connector ตรวจสอบข้อมูล และพิมชื่อของ NAT Connector เพื่อยืนยันการลบ

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

#### 8. Delete สำเร็จ

เมื่อลบสำหรับ NAT Connector นั้นจะหายไปจากหน้า NAT Connector List

<figure><img src="/files/9z6Dbcgzll1o4qfJTw1w" alt=""><figcaption></figcaption></figure>

### 2. Delete NAT Gateway

#### 1. เข้าสู่หน้า NAT Gateway

ที่แถบเมนูทางซ้าย คลิกเลือกเมนู​ INTERNET NAT GATEWAY > NAT Gateway เพื่อเข้าสู่หน้า NAT Gateway List

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

#### 2. เข้าหน้า Delete NAT Gateway

ที่รายการ NAT Gateway ที่ต้องการลบ ให้คลิกที่ Icon <img src="/files/8zJh3Wu43ssJYrALESlP" alt="" data-size="line"> ที่ Column Action และเลือก Delete

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

#### 3. ทำการ Delete NAT Gateway

เลือกว่าจะ​ Deallocate NAT Reserved IP ด้วยหรือไม่ จากนั้นคลิกปุ่ม Next

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

จากนั้นให้ตรวจสอบ Resource ที่เกี่ยวข้อง พิมชื่อของ NAT Gateway เพื่อยืนยัน แล้วคลิกปุ่ม Delete

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

#### 4. Delete NAT Gateway สำเร็จ

เมื่อการลบ NAT Gateway เสร็จสิ้น NAT Gateway ที่เลือกจะหายไปจากหน้า NAT Gateway List

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs-epc.gitbook.io/ncs-documents/internet-nat-gateway/managing-internet-nat-gateway/delete-nat-gateway.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
