File: config_delete.rst

package info (click to toggle)
groonga 9.0.0-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 101,496 kB
  • sloc: ansic: 608,707; ruby: 35,042; xml: 23,643; cpp: 10,319; sh: 7,453; yacc: 5,968; python: 3,033; makefile: 2,609; perl: 133
file content (95 lines) | stat: -rw-r--r-- 1,727 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.. -*- rst -*-

.. highlightlang:: none

.. groonga-command
.. database: config_delete

``config_delete``
=================

Summary
-------

.. versionadded:: 5.1.2

``config_delete`` command deletes the specified configuration item.

Syntax
------

This command takes only one required parameter::

  config_delete key

Usage
-----

Here is an example to delete ``alias.column`` configuration item:

.. groonga-command
.. include:: ../../example/reference/commands/config_delete/existent.log
.. config_set alias.column Aliases.real_name
.. config_get alias.column
.. config_delete alias.column
.. config_get alias.column

Here is an example to delete nonexistent configuration item:

.. groonga-command
.. include:: ../../example/reference/commands/config_delete/nonexistent.log
.. config_delete nonexistent

``config_delete`` returns an error when you try to delete nonexistent
configuration item.

Parameters
----------

This section describes all parameters.

Required parameters
^^^^^^^^^^^^^^^^^^^

There is one required parameter.

.. _config-delete-key:

``key``
"""""""

Specifies the key of target configuration item.

The max key size is 4KiB.

You can't use an empty string as key.

Optional parameters
^^^^^^^^^^^^^^^^^^^

There is no optional parameter.

Return value
------------

``config_delete`` command returns whether deleting a configuration
item is succeeded or not::

  [HEADER, SUCCEEDED_OR_NOT]

``HEADER``
^^^^^^^^^^

See :doc:`/reference/command/output_format` about ``HEADER``.

``SUCCEEDED_OR_NOT``
^^^^^^^^^^^^^^^^^^^^

If command succeeded, it returns true, otherwise it returns false on error.

See also
--------

  * :doc:`/reference/configuration`
  * :doc:`config_get`
  * :doc:`config_set`