List of usage examples for com.liferay.portal.kernel.repository LocalRepository deleteAll
public void deleteAll() throws PortalException;
From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.java
License:Open Source License
/** * Delete all data associated to the given repository. This method is only * supported by the Liferay repository./*from w w w .j a v a2s. c o m*/ * * @param repositoryId the primary key of the data's repository * @throws PortalException if the repository could not be found * @throws SystemException if a system exception occurred */ public void deleteAll(long repositoryId) throws PortalException, SystemException { LocalRepository localRepository = getLocalRepository(repositoryId); localRepository.deleteAll(); }