# Delete Instance CIM Operation

The `DeleteInstance` method Deletes a single CIM Instance from the target Namespace based on the InstanceName parameter provided.

NameSpace String that defines the target namespace. See NameSpace Operations for more information

InstanceName Defines the Name of instance to be retrieved. See Enumerate Instance Names for instance names for a class

## REQUEST RETURN

If successful, the specified Instance MUST have been removed by the CIM Server. If unsuccessful, one of the following status codes MUST be returned by this method, where the first applicable error in the list (starting with the first element of the list, and working down) is the error returned. Any additional method-specific interpretation of the error in is given in parentheses.

- CIM_ERR_ACCESS_DENIED
- CIM_ERR_NOT_SUPPORTED
- CIM_ERR_INVALID_NAMESPACE
- CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or otherwise incorrect parameters)
- CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified namespace)
- CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM Instance does not exist in the specified namespace)
- CIM_ERR_FAILED (some other unspecified error occurred)

## Additional Field Information

The `DeleteInstance` operation deletes a single CIM Instance from the target Namespace.

NameSpace - The NameSpace parameter is a string that defines the target namespace

InstanceName - The InstanceName input parameter defines the name (model path) of the Instance to be deleted.

## C++ Pegasus API as defined in Operations.h

          virtual void deleteInstance(
              const String& nameSpace,
              const Reference& instanceName) = 0;

Demonstration Prepared by the OpenGroup Manageability Work Group Pegasus Development Team

See (http://www.opengroup.org/management) for more information on Pegasus

Last Modified Friday, June 29, 2001 06:23:25 PM Copyright @ The Open Group 2001