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
- Programmatically get images by URL and save in uploads folder
- Can I attach image to post without adding it to post?
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- wp_get_attachment_image_src and server path
- Insert an image into a post by API
- Function to call the attachment image from post
- How can I hide media library images from general users?
- Creating a rotating header /image slider using theme customization
- Adding HTML within an image title attribute
- 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]
- Separate attachment images from post loop
- How to display a shortcode caption somewhere other than the_content
- copy attachment title to description and alt text
- Allowing post attachments without allowing to insert in text
- Applying class to links around self hosted images embedded to posts/pages
- Rename attachments during upload
- How to add a rel attribute to images that contains their categories?
- Pulling Post Image Attachments in WordPress 3.9
- Limit author image size
- Setup A Default Featured Image
- Link Featured Thumb to Attachment Page, If Possible
- Importing media medium setting image gallery / image attachments
- Image still linked as attachment to page even though it has been deleted
- What’s the best “insert all images” plugin?
- Display one random image, but only if landscape
- get_attachment_id() only get id of first attached image after post update
- Is there a way to get attachment data?
- How to change image url?
- Add a new data attribute in tag
- Can I the caption shortcode to set caption to a data attribute, and with the image’s alignment intact?
- Custom page template to display all image attachments
- get the image of the post
- Adding width and height to wp_get_attachment_image_src
- Photography Based Design – Multiple Images Per Post
- Add an attribute to attachments
- Out of memory error reporting
- How can I attach hotlinked images in posts/pages within the same server?
- WordPress Image Attachment using remote image
- Exclude images from “inserted into post” when trying to get attachments
- Pull images from the gallery
- Get ALT attribute from title post (code not work)
- Auto delete attachments that are older than x days
- Images attached to posts from library link to 404 error page
- Replacing the content of an image attachment using API
- Image LazyLoad plugin not loading jQuery dependancies with wp_enqueue_script in WP 3.3.1
- How to check for images before echo
- Does wp_get_attachment_image_src also work with non-image files?
- Remove height attribute from wp_get_attachment
- wp get attachment image always gives me thumbnail
- How do you import images from a URL in your post?
- Get images attached to a specific page
- WordPress Creates Unused (Unregistered) Image Sizes
- Need custom picture field for pages
- Disable save as image on smartphones using all browsers ( chrome, firefox, ie, cm, opera )
- How to test if there are no more previous or next image on attachment page?
- 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?
- Can i have 2 separate Galleries on 2 separate pages each go to a DIFFERENT Attachment.php file?
- Attachments without images
- 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
- Allow users to upload attachments to certain posts
- Alt attribute is not showing while the value is given in Media
- WooCommerce Variation Swatches and Photos – get attribute thumbnail
- 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
- attachment.php & flexslider—linking thumbnail to specific image
- Create a custom attachment thumbnail for quick page load
- How can I hide previous_image_link() on first attachment page?
- 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?
- Stop Attachment image names from taking top level permalink
- 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?
- Image Attachments Query Not Working If Post Is Loaded Via Ajax
- How to get WordPress to resize images for srcset?
- Attachment tag archive
- Define how an attached image is rendered
- How to add year and month path to old attachment images?