Remove a resource

The format of the <method> element for removing a resource is:

<method methodName="removeResource">

Use this method to remove a resource from a map. The <method> element contains any number of <resources> elements that identify the maps to modify. For more information, see <resources>. Each <resources> element contains one or more <resource> elements that each identify the resources to add or replace. For more information, see <resource>.

Example

This example removes the resource ny.gif from a map named map1.

<methodCall>
	<method methodName="resource.removeResource">
		<resources mapName="map1">
			<resource name="ny.gif" />
		</resources>
	</method>
</methodCall>