Deleting Image Assets
Currently, Strapi will allow the removal/deletion of an image in the media library without first checking if the image is being displayed on the website. The deletion in the media library will remove the image from the page or component but it will not replace that image. If a required image is left blank, then the page will fail to publish. This will prevent any content updates from being reflected on the live site.
Example of a deleted image in the media library and not the page or component:
To ensure this doesn't occur, please follow the deletion process below.
-
Navigate to the page or component that is using the image that will need to be deleted.
-
Click the trashcan icon to delete the desired image.
-
Click the add image icon to replace the required image.
- Select the new image and click "Finish".
- Click "Save".
-
Navigate to the Media Library.
-
Select the image to delete and click "Delete".
-
Click "Confirm" to finalize the image deletion.
The process of deleting an image is now complete!