That’s a lot of unattached images.
If you have couple of hundred images then you can delete them manually from media library.
1. Click 'Screen Options' at the top right and set 'Show on screen' to 200.
2. Click 'Apply'.
3. Click the checkbox just under 'Bulk Actions' to check all images on the page.
4. Select 'Delete Permanently' in the 'Bulk Actions' dropdown.
5. Click 'Apply'.
But if you have thousand of unattached images then it would be best to use a plugin.
DNUI (Delete not used image) plugin will do that for you. It will let you delete tons of images from media library.
Or use DX Delete Attached Media
Related Posts:
- Get “Image CSS Class” value from the Advanced Options section
- Programmatically adding images to media library
- Creating an Image-Centric Custom Post Type?
- Programmatically get images by URL and save in uploads folder
- how to get original image using wp_get_attachment_image_src
- Can I attach image to post without adding it to post?
- WP 4.4. responsive images browser choosing the “wrong” one
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- Remove images (files) that were generated when using add_image_size()
- wp_get_attachment_image_src and server path
- Using Images in WordPress – Best Practices
- How to find attachment by it’s name?
- Change html structure of all img tags in WordPress
- How do I delete all generated images from my server except those currently used in posts
- Insert an image into a post by API
- Function to call the attachment image from post
- How to create thumbnails with a fixed width, so all of them will have the same width?
- Theme Customiser Image Control
- How can I hide media library images from general users?
- Get attachment ID of author_meta image – Attachment Metadata
- Creating a rotating header /image slider using theme customization
- Associate an existing image with a post
- Adding HTML within an image title attribute
- Programatically creating image attachments from local URLs and setting featured image
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- How do i upload an image and return the image id?
- Get Attachment ID from URL [duplicate]
- How to remove title attribute from gallery links and images
- Separate attachment images from post loop
- Automatically wrap post image in div
- How to display a shortcode caption somewhere other than the_content
- copy attachment title to description and alt text
- Get an image from url in front end submission form
- Apply nextgen-gallery lightbox effect [closed]
- What is the best way to associate multiple images to one page?
- How to pass on a value as parameter via url to another page
- How to get the cropped image from media library?
- Random Characters in the end of every image url in post
- Excluding post thumbnail from the attachment.php when using wordpress gallery
- How to replace post image url before posting using api?
- How to get post id of first child of the same post type?
- Output posts attached images as thumbnails linked to full-size with lightbox class
- Can i have 2 separate Galleries on 2 separate pages each go to a DIFFERENT Attachment.php file?
- Attachments without images
- How to change an image source when rendering on frontend?
- Custom image size not displaying with wp_get_attachment_image()
- wp_insert_attachment() dupplicate attachment posts
- How to echo images Urls from a wordpress post, that are relally in the post
- SQL: How to find all attachments that are not used in any posts/pages/custom_post_types
- attachment_fields_to_save first parameter is null
- Allow users to upload attachments to certain posts
- How to make image uploads default to full size?
- How to disable post-thumbnail from generation?
- WordPress 404 Images – Images not found after deleted from media
- Alt attribute is not showing while the value is given in Media
- WooCommerce Variation Swatches and Photos – get attribute thumbnail
- How to Make Only Images Connected to a Post Show? Not Entire Media Collection?
- Unable to delete images in Media Library
- Dinamically modifying attributes of images on posts
- Uploaded images not showing properly using wordpress
- How can I add an “Attach image to this post/page” link on the Add Media lightbox?
- Troubles with code for upload a image
- After I upload a file to library its name converted to dashes
- attachment.php & flexslider—linking thumbnail to specific image
- Create a custom attachment thumbnail for quick page load
- Surround uploaded image link with div
- How to add multiple images in a page
- Extract url from next_image_link
- Only User Upload image Http Error
- Setting name of attachment URL
- How can I hide previous_image_link() on first attachment page?
- Lots of attachments is causing slow load
- Show title when inserting single images
- Remove “align” attribute on images
- Upload button in metabox not working
- Adding thumbnails for non-image attachments
- Saving a post, content filtering and user levels
- Slider do not add alt attribute. Cant get alt attribute from a media library!
- Upload unnattached image from frontend
- Image attachement management – a philosophical question
- wp_get_attachment_link() add rel attribute if the link points to direct image
- How do I add a nested conditional within an echo – to use a default image if there isn’t one in the post?
- greater flexibility in targeting images attached to page
- Stop Attachment image names from taking top level permalink
- How to access & display images from a post without textual content ( and vice versa) according to best wordpress practices
- Why images are disappearing on WordPress web site?
- Img alt tag showing different value then entered
- Featured Image not changing
- How can we see which posts don’t have a featured image or it doesn’t exist anymore?
- Uploaded Media Images on Site
- Image Attachments Query Not Working If Post Is Loaded Via Ajax
- How can I use an image from an external source without uploading it to the media library
- How to get WordPress to resize images for srcset?
- Remove one srcset entry from wp_get_attachment_image
- Attachment tag archive
- Get field added via attachment_fields_to_edit filter in Gutenberg
- Define how an attached image is rendered
- How to add year and month path to old attachment images?
- How can I get or the intermediate size of an image with wp_get_attachment_image_src without using post meta?
- wp_get_attachment_image with custom size not rendering possible 2x srcset image