cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete selected file(s) or image(s) in MIME Repository

Former Member
0 Kudos

Hi all,

My aim is to delete selected file(s) or image(s) from ABAP webdynpro view. However, i just found IF_MR_API~DELETE of CL_MIME_REPOSITORY_API and this class method is to delete all items of the folder. I just want to select which file or images to delete. Does it possible to do?

Thanks.

Best Regards,

Chee Boon

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Are you sure about that. I believe this method will delete what object is specified via the I_URL parameter. If you specify a folder as the I_URL and choose X_DELETE_CHILDREN, then yes it will delete all files within that folder. If you want to control which files are deleted, loop through the file list and call the DELETE method for the URL of each item. You can get a File listing from the FILE_LIST method.