You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.0 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: StartCompact

The POST method initializes the compaction of the indicated file system. This operation makes the file system offline for the time of compaction.

Syntax

curl \
	http://{serverUrl}/admin/fs/compact?filesystem={filesystemName}  \
	-X POST 
    -d ""

Request

Payload
Empty
Query parameter Required Description
filesystemName Yes The name of a file system to compact

Response

Status code Description
200 OK
Return Value Description
OperationId The operation identifier

Example

curl \
	http://localhost:8080/admin/fs/compact?filesystem=NorthwindFS  \
	-X POST \
	-d ""
< HTTP/1.1 200 OK

{"OperationId":1}