Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Delete method of the Win32_ScheduledJob class

The DeleteWMI class method deletes a scheduled job.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax


uint32 Delete();

Parameters

This method has no parameters.

Return value

Return codeDescription
0

The request was accepted.

1

The request is not supported.

2

The user did not have the necessary access.

8

Interactive process.

9

The directory path to the service executable file was not found.

21

Invalid parameters have been passed to the service.

22

The account which this service is to run under is either invalid or lacks the permissions to run the service.

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Operating System Classes
Win32_ScheduledJob

 

 

Show:
© 2014 Microsoft