I am new to liferay. I am developing delete scheduler, which has to delete documents programatically based on some condition. using DLfileLocalServiceUtil.deleteFileEntry(id)
I can delete it, but it is deleting only entry in DlfileEntry
table not the actual file stored in file system in server in data folder.
deleting web content programmatically in liferay 6.0
720 Views Asked by user3872594 At
1
DLfileLocalServiceUtil is used for managing Documents. You need to use 'JournalArticle*Util' APIs to deal with Web Contents. There are multiple Util classes for different purpose. You'll perhaps need JournalArticleLocalServiceUtil.deleteJournalArticle() methods for deleting the web contents.