Deletes an existing resource and its associated data from the repository.
.NET Syntax
Java Syntax
PHP Syntax
Example (PHP)
This example deletes a single resource: // Assuming $resourceService is already initialized $resourceID = new MgResourceIdentifier("Library://Maps/World.MapDefinition"); $resourceService->DeleteResource($resourceID); This example deletes a folder and all items beneath it: $resourceID = new MgResourceIdentifier("Library://Maps/"); $resourceService->DeleteResource($resourceID); This deletes all the resources in the library: $resourceID = new MgResourceIdentifier("Library://"); $resourceService->DeleteResource($resourceID);
|