| 1 |
.. -*- rst -*- |
| 2 |
|
| 3 |
.. groonga-command |
| 4 |
.. database: config_delete |
| 5 |
|
| 6 |
``config_delete`` |
| 7 |
================= |
| 8 |
|
| 9 |
Summary |
| 10 |
------- |
| 11 |
|
| 12 |
.. versionadded:: 5.1.2 |
| 13 |
|
| 14 |
``config_delete`` command deletes the specified configuration item. |
| 15 |
|
| 16 |
Syntax |
| 17 |
------ |
| 18 |
|
| 19 |
This command takes only one required parameter:: |
| 20 |
|
| 21 |
config_delete key |
| 22 |
|
| 23 |
Usage |
| 24 |
----- |
| 25 |
|
| 26 |
Here is an example to delete ``alias.column`` configuration item: |
| 27 |
|
| 28 |
.. groonga-command |
| 29 |
.. include:: ../../example/reference/commands/config_delete/existent.log |
| 30 |
.. config_set alias.column Aliases.real_name |
| 31 |
.. config_get alias.column |
| 32 |
.. config_delete alias.column |
| 33 |
.. config_get alias.column |
| 34 |
|
| 35 |
Here is an example to delete nonexistent configuration item: |
| 36 |
|
| 37 |
.. groonga-command |
| 38 |
.. include:: ../../example/reference/commands/config_delete/nonexistent.log |
| 39 |
.. config_delete nonexistent |
| 40 |
|
| 41 |
``config_delete`` returns an error when you try to delete nonexistent |
| 42 |
configuration item. |
| 43 |
|
| 44 |
Parameters |
| 45 |
---------- |
| 46 |
|
| 47 |
This section describes all parameters. |
| 48 |
|
| 49 |
Required parameters |
| 50 |
^^^^^^^^^^^^^^^^^^^ |
| 51 |
|
| 52 |
There is only one required parameter. |
| 53 |
|
| 54 |
.. _config-delete-key: |
| 55 |
|
| 56 |
``key`` |
| 57 |
""""""" |
| 58 |
|
| 59 |
Specifies the key of target configuration item. |
| 60 |
|
| 61 |
The max key size is 4KiB. |
| 62 |
|
| 63 |
You can't use an empty string as key. |
| 64 |
|
| 65 |
Optional parameters |
| 66 |
^^^^^^^^^^^^^^^^^^^ |
| 67 |
|
| 68 |
There is no optional parameter. |
| 69 |
|
| 70 |
Return value |
| 71 |
------------ |
| 72 |
|
| 73 |
``config_delete`` command returns whether deleting a configuration |
| 74 |
item is succeeded or not:: |
| 75 |
|
| 76 |
[HEADER, SUCCEEDED_OR_NOT] |
| 77 |
|
| 78 |
``HEADER`` |
| 79 |
^^^^^^^^^^ |
| 80 |
|
| 81 |
See :doc:`/reference/command/output_format` about ``HEADER``. |
| 82 |
|
| 83 |
``SUCCEEDED_OR_NOT`` |
| 84 |
^^^^^^^^^^^^^^^^^^^^ |
| 85 |
|
| 86 |
If command succeeded, it returns true, otherwise it returns false on error. |
| 87 |
|
| 88 |
See also |
| 89 |
-------- |
| 90 |
|
| 91 |
* :doc:`/reference/configuration` |
| 92 |
* :doc:`config_get` |
| 93 |
* :doc:`config_set` |