I am using nopCommerce 3.90 with source.
Our Pictures are stored into...file system
We have over 86,000 images in /Content/Images, /Content/Images/Thumbs/000, /Content/Images/Thumbs/001, /Content/Images/Thumbs/002.
I want to get rid of a lot of those images by using the following processing:
List<int> productList = new List<int>()
{
1,
2,
3
};
foreach (var prodId in productList)
{
IList<ProductPicture> prodPictureList = _productService.GetProductPicturesByProductId(prodId);
foreach (var prodPicture in prodPictureList)
{
_productService.DeleteProductPicture(prodPicture);
}
}
Naturally productList will be bigger from another source.
Will the _productService.DeleteProductPicture(prodPicture); delete the images from the server?
Or, am I on the wrong track?
Any help would be gratefully appreciated.
Thanks,
Tony