05-02-2014 09:27 AM
After I removed some documents (and removed them from the trash), the contents of the binaries is still present on disk (in nxserver/data/binaries
).
I can remove them using Admin Center > Repository Binaries > check Delete orphaned binaries > Mark orphaned binaries, but how can this be done programmatically?
05-02-2014 09:28 AM
This can be done using Java code that you can insert in an operation:
import org.nuxeo.ecm.core.storage.sql.management.RepositoryStatus;
RepositoryStatus status = new RepositoryStatus();
if (!status.isBinariesGCInProgress()) {
status.gcBinaries(true);
}
05-02-2014 09:28 AM
This can be done using Java code that you can insert in an operation:
import org.nuxeo.ecm.core.storage.sql.management.RepositoryStatus;
RepositoryStatus status = new RepositoryStatus();
if (!status.isBinariesGCInProgress()) {
status.gcBinaries(true);
}
08-22-2014 01:27 PM
It's possible to obtain the same effect with a Nuxeo Shell command?
08-28-2014 10:27 AM
You can put this in a Groovy script and execute it through the shell.
01-22-2015 05:44 AM
See [NXDOC/Delete+Documents][1]
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.