What is the need to remove the full size images? Are you dealing with storage space? If not, why give yourself the headache? Just let the full size images stay where they are. You don’t have to use them. You’ll probably find a situation where you want to use it anyways.
Also, I’ve never tried it, but you might be able to disable default image without deleting it by adding the following to your functions.php file:
update_option('full_size_w', '0');
update_option('full_size_h', '0');
You could also customize which image sizes display as an option in the editor as shown here.
Related Posts:
- Update media library files after upload via FTP
- Image dimensions same as image size
- Is it possible to generate JPEG progressive thumbnails?
- Way to display media library in frontend
- Disable edit option in Media library
- How to get an image url from media library
- Generated media have incorrect aspect ratio
- Rebuild the entire WordPress uploads folder
- See List View – or Image titles- of Media Library when “Add Media” button is used
- How to upload media to a specific folder without a plugin in WordPress?
- Overriding of the template for the Attachment “thumbnails” in the Media Grid isn’t working
- Force image crop size in media editor
- When I insert media from Library into a post, can I then safely delete that media?
- Images missing from the media folder
- Direct media library upload saving in wrong month date folder in custom theme
- add file name column to media library to sort by
- How to add multiple versions of the same featured image for SEO reasons?
- Pictures won’t display in media library and also won’t show preview when selected
- Media Library empty after server migration
- Add custom css class to wp-list-table row for Media Screen
- Add a menu item to WordPress 3.5 Media Manager
- How can you set maximum width for original images?
- Custom post type with a forced fixed aspect ratio image crop
- How do I force WordPress to show most recent version of images in the media library?
- What is the best practice for renaming WordPress media files?
- How to capture the selection:toggle event fired by wp.media
- wp media regenerate unknown –image_size parameter
- Changing the media library default tab
- WordPress Uploads Folder can’t be Written to
- Best image hosting service
- Shortlink directly to a media file?
- Too much recursion error when chosing image from image library for two different meta boxes in one post
- Images are registered in media library but still won’t show up
- Run script after clicking Set Featured Image in Media
- Uploading non-media files?
- Media > Image Sizes aren’t being applied to uploads
- Add media column to edit post screen
- Can’t edit media details in new role
- add_image_size landscape or portrait
- What table is the media’s sort order stored?
- Moving existing media items to new upload path structure not updating full URL path
- How to limit characters of the post title?
- How to bulk Edit Dates in Media Library?
- Trigger JS in custom meta box if a featured image is loaded/exists
- WordPress Built In Dialog Box For My Plugin
- Deleting images from gallery remain as attachment
- Cannot embed YouTube videos “Failed to embed” error
- wp_get_attachment_image_src() returns wrong url
- Create Media via REST API from Android Application
- Custom icons in media library
- Overwrite media matching post title using WP CLI’s media import command
- Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically
- Password Protecting Media
- Creating subfolders in the media library
- WordPress media upload automatic refresh
- Can I Change the Media Upload Location for each user?
- Media Library empty after server move (exact copy of files and db’s)
- Blank upload.php page
- Media attachment pages giving 404’s
- Custom media uploader not showing library
- Extending wp.media.model, query media from different blog on network and refresh view
- Media changes not updating posts
- Use rich text editor in ‘Edit Media’, for attachment media description
- How to disable Media Library?
- Theme loosing some images when moving to new server
- Adding .mov files (not from YouTube) [duplicate]
- Set Featured Image not opening – Stuck at loading
- formatting horizontal and vertical images in Settings?
- How to get a list of all attachements urls for every post of a wordpress installation?
- Access generated thumbnails
- Media permalink to go directly to uploaded PDF, instead of a media page with a link
- WXR file – Media import failed – how to force import?
- Get all uploaded images using REST api
- IPTC and custom thumb size
- WordPress REST API to get all media not working
- unsharp thumbnails after uploading image
- When inserting an image in a post, how to link the image to a resized URL instead of the full image URL?
- Replace Swedish characters in filenames
- Get the Playlist embedded in Post/Page content
- Can we reuse WordPress drag drop media upload in plugins?
- WP Cli + xargs fails
- Hide download button from audio player
- Insert Media – Attachment – Link to : Remove options
- Only current gallery images with get_attached_media
- How to make caption field required in media library?
- wp media popup close all popup
- How do I display image files as links?
- Add hyperlinks in media description
- ACF Gallery & mqTranslate, Title and Description not displaying in other languages
- Can somebody explain this mediaelement and audio tags
- Custom image sizes
- Unable to send upload url
- WP Feed namespace attr issue
- Thumbnails for media Library images
- Another “Sent Headers” Error w/ Missing Temporary Folder
- How to import and update images/galleries that point to an old site
- WP is showing wrong image dimensions
- When I upload any media file it says “The uploaded file could not be moved to wp-content/uploads/2017/04”
- Help with WordPress slider
- Delete all thumbnails & regenerate them?