IADsContainer Method: Delete

Delete
(
 Class As String,
 RelativeName As String
);

Parameters

[in] String Class
Class that is the name of an object in DirectScript, e.g., "User", "Group" or "Computer". Possible values for the respective containers are specified below:

Computer Container

"User", "Group", "PrintQueue" and "Service"

Domain Container

"User", "Group" and "Computer"

File Container

"File", "Directory" and "Share"

RegistryKey Container

"RegKey" and "RegValue"

[in] String RelativeName
Name of an actual object in the namespace, e.g., John is the RelativeName with Class "User". 

Description
Deletes the object identified by the provided Class and RelativeName.

Example

Dim ContainerObject As IADsContainer
Set ContainerObject = GetObject("NTDS://YourDomainName")
ContainerObject.Delete "User", "UserName"

 

See Also

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.