SCCM WebService API Reference

SCCMWebService..::..DeleteComputer Method

Deletes the specified resource.

Namespace:  SCCMWebService
Assembly:  SCCMWebService (in SCCMWebService.dll)

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool DeleteComputer(
	string resourceID,
	bool databaseOnly,
	out string exception
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function DeleteComputer ( _
	resourceID As String, _
	databaseOnly As Boolean, _
	<OutAttribute> ByRef exception As String _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ DeleteComputer(
	String^ resourceID, 
	bool^ databaseOnly, 
	[OutAttribute] String^% exception
)

Parameters

resourceID
Type: String
The resource ID.
databaseOnly
Type: Boolean
if set to true deletes computer only from database, otherwise deletes computer from active directory additionally.
exception
Type: String%
The exception.

Return Value

true if succeeded, otherwise false.