LATEST VERSION: 9.1.1 - CHANGELOG
Pivotal GemFire® v9.1

destroy

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

destroy disk-store

Deletes a disk store and all files on disk used by the disk store. Data for closed regions that previously used this disk store are lost.

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

Syntax:

destroy disk-store --name=value [--group=value(,value)*]

Parameters, destroy disk-store:

Name Description
--name Required. Name of the disk store to be deleted.
‑‑group Group(s) of members on which the disk store will be destroyed. If no group is specified, the disk store is destroyed on all members.

Example Commands:

destroy disk-store --name=store1

Sample Output:

gfsh>destroy disk-store --name=store1
Member  | Result
------- | -------
server1 | Success

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]

Parameters, destroy function:

Name Description
--id Required. Unique function identifier. Use the list functions command to obtain the ID.
--groups One or more groups of members from which this function will be unregistered.
‑‑member Name or 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 gateway-sender

Destroy a gateway sender that is no longer used by a region.

The default is for the gateway sender to be destroyed on all members.

No region may be attached to the gateway sender to be destroyed. If a region is still attached, the system issues an error message similar to:

ERROR: The GatewaySender ParallelGatewaySender{id=ln,remoteDsId=2,isRunning =false}
could not be destroyed as it is still used by region(s).

Remove the gateway sender from the region with a command similar to:

gfsh>alter region --name=regionA --gateway-sender-id=""

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

Syntax:

destroy gateway-sender --id=value [--group=value(,value)*]
  [--member=value(,value)*]

Parameters, destroy gateway-sender:

Name Description
--id Required. Unique gateway sender identifier. Use the list gateways command to obtain the ID.
--group One or more groups of members from which this gateway sender will be destroyed.
‑‑member Name or ID of the member from which this gateway sender will be destroyed.

Example Commands:

destroy gateway-sender --id=SiteASender

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.

Parameters, destroy index:

Name Description
--name Name of the index to be removed.
--member Id of the member on which index is to be removed.
--region Name of the region from which an index or all indexes are to be destroyed.
--group The index will be removed on all the members in this member group.

Example Commands:

destroy index --member=server2
destroy index --name=MyKeyIndex

destroy lucene index

Destroy or remove the specified Lucene index.

See also create lucene index, describe lucene index, list lucene indexes and search lucene.

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

Syntax:

destroy lucene index --region=value [--name=value]

Parameters, destroy lucene index:

Name Description
‑‑region Required. Name of the region from which indexes are to be removed. If no --name option is specified, all indexes associated with the region are destroyed.
‑‑name Name of the index to be removed.

Example Commands:

destroy lucene index --region=region1
destroy lucene index --region=region1 --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

Parameters, destroy region:

Name Description
--name Required. Name and 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.