destroy

Delete or unregister functions, remove indexes, and remove regions.

destroy function

Destroy or unregister a function. The default is for the function to be unregistered from all members.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:
destroy function --id=value [--group=value] [--member=value]
id Required. Unique function identifier. Use the list functions command to obtain the ID.
group Group of members from which this function will be unregistered.
member Name/Id of the member from which this function will be unregistered.
Example Commands:
(1) destroy function --id=InterestCalculations
(2) destroy function --id=InterestCalculations --member=server1
(3) destroy function --id=InterestCalculations --group=Group1

destroy index

Destroy or remove the specified index.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:
destroy index [--name=value] [--region=value] [--member=value] 
[--group=value]
Note: You must specify at least one of the parameter options. If you enter destroy index without any parameters, the command will ask you to specify at least one option.
name Name for the index to be removed.
member Id of the member on which index is to be created.
region Name of the region , from where an index or all indexes are to be destroyed.
group The index will be created on all the members in this member group.
Example Commands:
destroy index --member=server2
destroy index --name=MyKeyIndex

destroy region

Destroy or remove a region.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:
destroy region --name=value
name Name/Path of the region to be removed.
Example Commands:
destroy region --name=region4
destroy region --name=/region1/subregion1
Sample Output:
gfsh>destroy region --name=region1
"region1"  destroyed successfully.