Delete image record from Kentico database on cloning site

Chandra Bhattarai asked on April 24, 2022 08:54

I have cloned several sites from one site from site settings. The images from 1st sites are physically not presence on other sites. But the problem happened is, The records of all images are stored on other sites database too so that the cloned sites are showing unnecessary corrupted images from 1st sites. How can I delete the unnecessary media file and attachment ?

I am using Kentico 13.0.62

Recent Answers


Juraj Ondrus answered on April 24, 2022 11:49

I would recommend deleting the records from the UI - go to Media libraries app and delete the libraries and/or files.

0 votesVote for this answer Mark as a Correct answer

Chandra Bhattarai answered on April 24, 2022 13:10

Hi Juraj,

Thank you for the answer. But the Image file are only being shown on text editor as corrupted image of 1st site, I went to Media Libraries to delete as per your instruction, but there is absence of that image file while trying to view from media libraries. Can you please help further more.

Thanks, Chandra

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 24, 2022 13:29

If you have referenced the images in the content, then you need to delete the links to those files in your content. I would again recommend doing it through the admin UI and edit the page's content and delete the images.

0 votesVote for this answer Mark as a Correct answer

Willie Alvarez answered on April 25, 2022 08:35

Open the Media libraries application. Edit () the Media library that contains the files that you want to delete. Click on Delete () next to the file that you want to delete. – OR – Select the files that you want to delete and use the second drop-down list under the files to choose Delete. Then press OK.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.