Samita Sarkar
Samita Sarkar

Reputation: 11

Marklogic ml-gradle not clearing the database

I have recently loaded about 30GB of data to a database. To clear the content I ran the following gradle command which succeeded but the database was not cleared. Could not find any errors in the log.

gradle mlClearContentDatabase -PdeleteAll=true

Any idea to what the issue might be or anyone have similar issues?

Upvotes: 1

Views: 115

Answers (1)

Mads Hansen
Mads Hansen

Reputation: 66783

Use the project property confirm=true

Clearing the content database

gradle mlClearContentDatabase -Pconfirm=true

It looks like the wiki page might be incorrect. Says you should use deleteAll instead of confirm.

You must include the property -PdeleteAll=true, which is required to decrease the chance that you run this task accidentally.

Upvotes: 2

Related Questions