Media Trash Button


Add trash button for Media Library.

Add button

  • List view only.


  • All media items
  • View Trash

In wp-config.php, Add the following one line.

define( 'MEDIA_TRASH', true );


  • Media Library
  • Trash


  1. Upload media-trash-button directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress




11 September 2021
Thanks Katsushi Kawamori perfect plugin.I'm happy 🙂
12 January 2021
I deleted an image but was unable to save another image in the same name as the deleted image because it was in the trash. I used this plugin and I was able to permanently delete the trashed image and save my new image. I love this plugin. Thanks to the developers.
12 October 2020
It might be just a small plugin, but it helps to (easily) get rid of accumulated 'trash' media files directly from WP admin panel (standard WP does not expose these files for permanent removal).
Read all 3 reviews

Contributors and Developers

“Media Trash Button” is open source software. The following people have contributed to this plugin.


“Media Trash Button” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “Media Trash Button” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Change Log


Supported WordPress 5.6.


Made it list view only.


Initial release.