remove

Remove an entry from a region.

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

Syntax:

remove --region=value [--key=value] [--all(=value)?] [--key-class=value]

Name Description Default Value
\-\-key String or JSON text that will be used to create a key to retrieve a value .
‑‑key‑class Fully qualified class name of the key's type. key constraint for the current region or String
\-\-region Required. Region from which to remove the entry.
\-\-all Clears the region by removing all entries. false

Table 1. Remove Parameters

Example Commands:

gfsh>remove --region=/region1/region12 --key=('id': '133abg134')
gfsh>remove --region=/region1/region12 --key=('id': '133abg134') --key-class=data.ProfileKey 
gfsh>remove --region=/region1/region12 --all

Error Messages:

"Region name is either empty or Null";
"Key is either empty or Null";
"Value is either empty or Null";
"Region <{0}> not found in any of the members";
"Region <{0}> Not Found";
"Key is not present in the region";
"Cleared all keys in the region";

results matching ""

    No results matching ""