Argumento inválido! Eu entendi agora.
Não há necessidade de anexar o comando ao número da partição quando a partição já estiver selecionada.
Em vez de:
select partition 2
delete partition 2 override
Use isto:
select partition 2
delete partition override
Tão simples quanto isso ...
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. Med ensamrätt.
C:\Windows\system32>diskpart
Microsoft DiskPart version 6.2.9200
Copyright (C) 1999-2012 Microsoft Corporation.
On computer: SKANNING26
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 698 GB 0 B *
Disk 1 Online 3819 MB 3670 MB *
DISKPART> select disk 1
Disk 1 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 49 MB 64 KB
Partition 2 System 98 MB 51 MB
DISKPART> select partition 1
Partition 1 is now the selected partition.
DISKPART> delete partition 1
The arguments specified for this command are not valid.
For more information on the command type: HELP DELETE PARTITION
DISKPART> delete partition
DiskPart successfully deleted the selected partition.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 2 System 98 MB 51 MB
DISKPART> select partition 2
Partition 2 is now the selected partition.
DISKPART> delete partition
Virtual Disk Service error:
Det går inte att ta bort en skyddad partition utan att parametern Tvinga skyddad
har angetts.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
* Partition 2 System 98 MB 51 MB
DISKPART> delete partition override
DiskPart successfully deleted the selected partition.
DISKPART> list partition
There are no partitions on this disk to show.
DISKPART>