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

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: CleanUpAsync

CleanUpAsync forces to run a background task that will clean up files marked as deleted. Read Background tasks article for details.

Syntax

Task CleanUpAsync();

Return Value
Task A task that represents the asynchronous operation

Example

await store.AsyncFilesCommands.Storage
		.CleanUpAsync();