# Remove EFI disk partition

Launch cmd, execute

```bash
diskpart
```

In diskpart, do

```bash
DISKPART> list disk
```

Select target disk, where N is the target disk index

```bash
DISKPART> select disk N
```

```bash
DISKPART> list partition
```

```bash
DISKPART> select partition
```

```bash
DISKPART> clean
DISKPART> create partition primary
```

Then, delete this new primary partition in Disk Management window, and create new partition as desired.


---

# 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://tk233.gitbook.io/notes/tools/windows/remove-efi-disk-partition.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.
