How to delete content?

How to delete content?

BY 08 Jul 2013 Native Application Development

Is it possible to delete image content from the device?

using AppControl OnAppControlCompleteResponseReceived

String *pImageSource = (String*) pResultList->GetValue(String(L”path”));

ImageContentInfo imageContentInfo;
 imageContentInfo.Construct(pImageSource);
// returns empty string =  imageContentInfo.GetContentName();
//returns zero = imageContentInfo.GetContentSize();

//returns correct path = imageContentInfo.GetContentPath()

ContentManager contentManager;
contentManager.Construct();

contentManager.DeleteContent(imageContentInfo.GetContentId) // FAILS – Invalid Content Id

Written by