REST gateway example: Clearing data grid map entries

You can use the HTTP DELETE method of the REST gateway to clear a map in a data grid.

Clearing an individual entry

To delete an individual entry, use the DELETE method and the key name of the object:
DELETE http://myxc10.ibm.com/resources/datacaches/MyDataGrid/MyDataGrid/my.data.item

Clearing an entire map on the data grid

To clear an entire map in the data grid, use the HTTP DELETE method and omit the key portion of the URI. For example, to clear the MyDataMap.LUT map on the MyDataGrid data grid, use the following operation:
DELETE http://myxc10.ibm.com/resources/datacaches/MyDataGrid/MyDataMap.LUT
Parent topic: Developing data grid applications with the REST gateway
Related reference:
REST gateway: URI format
REST gateway: Data format
REST gateway: REST operations
REST gateway example: Inserting and getting data grid map entries
REST gateway example: Creating dynamic maps
REST gateway example: Time to live (TTL) expiration
REST gateway: Security configuration
REST gateway: HTTP sessions and cookies