@@ -41140,6 +41140,64 @@ x-content-type-options: nosniff
41140
41140
41141
41141
41142
41142
41143
+ @endDocuBlock
41144
+
41145
+
41146
+ <!-- filename: /work/ArangoDB/Documentation/DocuBlocks/Rest/Administration/put_admin_compact.md -->
41147
+ @startDocuBlock put_admin_compact
41148
+
41149
+ @brief compact all databases
41150
+
41151
+ @RESTHEADER{PUT /_admin/compact, Compact the entire database system data, RestCompactHandler}
41152
+
41153
+ @HINTS
41154
+ {% hint 'warning' %}
41155
+ This command can cause a full rewrite of all data in all databases, which may
41156
+ take very long for large databases. It should thus only be used with care and
41157
+ only when additional I/O load can be tolerated for a prolonged time.
41158
+ {% endhint %}
41159
+
41160
+ @RESTDESCRIPTION
41161
+ This endpoint can be used to reclaim disk space after substantial data
41162
+ deletions have taken place. It requires superuser access.
41163
+
41164
+ @RESTBODYPARAM{changeLevel,boolean,optional,}
41165
+ whether or not compacted data should be moved to the minimum possible level.
41166
+ The default value is *false*.
41167
+
41168
+ @RESTBODYPARAM{compactBottomMostLevel,boolean,optional,}
41169
+ Whether or not to compact the bottommost level of data.
41170
+ The default value is *false*.
41171
+
41172
+ @RESTRETURNCODES
41173
+
41174
+ @RESTRETURNCODE{200}
41175
+ Compaction started successfully
41176
+
41177
+ @RESTRETURNCODE{401}
41178
+ if the request was not authenticated as a user with sufficient rights
41179
+
41180
+ @EXAMPLES
41181
+
41182
+
41183
+ <div class="example-container" id="RestAdminCompact_container">
41184
+ <div id="RestAdminCompact_long">
41185
+ <pre>
41186
+ <span class="hljs-meta">shell></span><span class="bash"> curl -X PUT --header <span class="hljs-string">'accept: application/json'</span> --dump - http://localhost:8529/_admin/compact</span>
41187
+
41188
+ HTTP/<span class="hljs-number">1.1</span> OK
41189
+ content-type: application/json
41190
+ x-content-type-options: nosniff
41191
+
41192
+ {
41193
+ }
41194
+ </pre>
41195
+ </div>
41196
+ </div>
41197
+
41198
+
41199
+
41200
+
41143
41201
@endDocuBlock
41144
41202
41145
41203
0 commit comments