cancel
Showing results for 
Search instead for 
Did you mean: 

Delete a file from the KM in a Web Dynpro application

Former Member
0 Kudos

Hello,

We need to delete a file from the KM in a Web Dynpro application.

We have a file name (filename.txt) and its path (/documents/Test/), how can we completely delete the file from the KM?

Thanks,

Gil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi gil,

use the following code


RID pathRID = RID.getRID("/documents/Test/filename.txt"); 
IResourceFactory resourseFactory=ResourceFactory.getInstance();
IResource collection =resourseFactory.getResource(pathRID,	resourseContext);
collection.delete();

Hope it will help you.

Regards,

P.Manivannan.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Refer this[Forum Link|]

Mandeep Virk

Former Member
0 Kudos

Hi ,

go to Sys Administration -> KM Content -> go to Particular document -> just tick the check box which doc u want delete -> go to selection -> u will find delete .

thats it ,,,

Regards ,

Venkat P

Former Member
0 Kudos

Hi venkata reddy,

You wrongly mentioned system admin instead of content admin

Go to Content administration not in the system administration

if u delete the file manually in the portal you can go with

go to Content administration -> KM Content -> go to Particular document -> just tick the check box which doc u want delete -> go to selection -> u will find delete .

Regards,

P.Manivannan

Former Member
0 Kudos

Hi ,

yes its content administration ....

Regards ,

venkat P