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:

Path to img del step 1

To ensure this doesn't occur, please follow the deletion process below.

  1. Navigate to the page or component that is using the image that will need to be deleted.

  2. Click the trashcan icon to delete the desired image.

    Path to img del step 2

  3. Click the add image icon to replace the required image.

Path to img del step 3

  1. Select the new image and click "Finish".

Path to img del step 4

  1. Click "Save".

Path to img del step 5

  1. Navigate to the Media Library.

  2. Select the image to delete and click "Delete".

    Path to img del step 6

  3. Click "Confirm" to finalize the image deletion.

Path to img del step 7

The process of deleting an image is now complete!