Compartilhar via


Delete method of the MSFT_SMPool class

Starts a job to delete a Pool. The freed space is returned to the source primordial Pool.

Syntax

uint32 Delete(
  [in, optional]  String                username,
  [in, optional]  String                password,
  [out]           MSFT_SMJob        REF Job,
  [out, optional] MSFT_SMExtendedStatus ExtendedStatus
);

Parameters

username [in, optional]

Used to authenticate with the SMI-S provider. If not provided, the storage service attempts to obtain these credentials from the configuration provider.

password [in, optional]

Used to authenticate with the SMI-S provider. If not provided, the storage service attempts to obtain these credentials from the configuration provider.

Job [out]

Reference to the MSFT_SMJob instance. May be NULL if the job is completed.

ExtendedStatus [out, optional]

An MSFT_SMExtendedStatus object containing the results of calling this method.

Return value

Job Completed with No Error (0)

Not Supported (1)

Unknown (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

In Use (6)

Method Parameters Checked - Job Started (4096)

StorageService: Unable To Wait For Job Completion (40055)

StorageService: Method invocation failed (40300)

StorageService: Concrete Pool deletion is not supported (40809)

StorageService: Cannot delete a Primordial Pool. Only Concrete Pools can be deleted (40810)

StorageService: Cannot delete Concrete Pool - Concrete Pool has allocated StorageVolumes (40811)

StorageService: Provider job completed with errors (41000)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMPool