Title: Delete Post with Attachments
Author: Alsvin Tech
Published: <strong>7. 10. 2021</strong>
Last modified: 19. 8. 2025

---

Prohledat pluginy

![](https://ps.w.org/delete-post-with-attachments/assets/icon-256x256.png?rev=2611012)

# Delete Post with Attachments

 Autor: [Alsvin Tech](https://profiles.wordpress.org/alsvin/)

[Stáhnout](https://downloads.wordpress.org/plugin/delete-post-with-attachments.2.0.zip)

 * [Podrobnosti](https://cs.wordpress.org/plugins/delete-post-with-attachments/#description)
 * [Hodnocení](https://cs.wordpress.org/plugins/delete-post-with-attachments/#reviews)
 *  [Instalace](https://cs.wordpress.org/plugins/delete-post-with-attachments/#installation)
 * [Vývojáři](https://cs.wordpress.org/plugins/delete-post-with-attachments/#developers)

 [Podpora](https://wordpress.org/support/plugin/delete-post-with-attachments/)

## Popis

By default, when you delete a post or page, any associated media files or attachments
to that post do not get deleted. Keeping these orphan files to your server will 
eat up a lot of precious web space for no reason.

Using this plugin when you delete a post, any associated attachments will also get
deleted automatically.

Before deleting any media file or attachment the plugin smartly checks that the 
attachment is not in use elsewhere, i.e. on any other post, page, or product.

**Works with popular Page Builders:**

 * Elementor
 * Thrive Architect
 * Divi Builder
 * Brizy
 * and many more…

**Works with all popular plugins such as:**

 * WooCommerce
 * Easy Digital Downloads
 * LearnDash
 * BuddyPress
 * MemberPress
 * Paid Memberships Pro
 * and many more…

**Features:**

 * No configuration required
 * Just activate and use
 * Save your precious server storage
 * Works automatically on post/page deletion

## Instalace

 1. Upload the plugin directory to the `/wp-content/plugins/` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‚Plugins‘ screen in WordPress

## Nejčastější dotazy

### Why my attachment does not get deleted when I Trash the post?

The attachment will not be deleted if the post is moved to Trash, the attachment
will only get deleted when the post is permanently deleted

### Why the attachment does not get deleted after I deleted the post permanently?

Sometimes single attachment is used in multiple posts, for example you have used„
image1.jpg“ in „Post 1“ and „Post 2“ both. Deleting „Post 1“ will not delete the
image until „Post 2“ is also deleted permanently. Please make sure your attachment
is not in used any other post.

### Does this plugin delete attachments inserted via page builders?

Yes! it removes media files linked to posts, pages, and products, including those
created using popular page builders.

### Which page builders are supported?

We have tested the plugin with Gutenberg, Elementor, Thrive Architect, Brizy, and
Divi Builder. Other page builders may also work, but have not been fully tested 
yet.

### What if my page builder isn’t supported or has issues?

We have got you covered! Let us know via the plugin’s support page, and we will 
work to add compatibility with your builder.

### Does this plugin require any configuration after installation?

No, there is absolutely no configuration required, just activate the plugin, and
it will start working.

### Does this plugin delete any associated media with the post?

Yes, when you delete a post the plugin will check if there is any associated media
or attachment in this post it will be deleted also.

### Does this plugin work with custom post types also?

Yes, it works with any types, posts, pages, products etc

### What if a single attachment is used on multiple posts?

If a single attachment is used on multiple posts, the attachment will not get deleted
until all associated posts are deleted.

### What if attachment is used as a featured image, does it get also deleted on post deletion?

Yes, the plugin will check if the image is not used in any other post then it will
get deleted along with the current post.

## Recenze

![](https://secure.gravatar.com/avatar/9184b9e05a8ef81a2ddb0e19b58d1595f1c7fac89aa5315b6e3a3ac892101e28?
s=60&d=retro&r=g)

### 󠀁[Big time saver!](https://wordpress.org/support/topic/big-time-saver-45/)󠁿

 [bobraynor2](https://profiles.wordpress.org/bobraynor2/) 20. 6. 2025

Perfect! No more bulky trash files left behind!!!!! Thank you so much!

![](https://secure.gravatar.com/avatar/eaee21450f0104a07f19315a73dc163518a7a8b74bc6dffc5c400b7ef8482733?
s=60&d=retro&r=g)

### 󠀁[Excellent Plugin !](https://wordpress.org/support/topic/excellent-plugin-9430/)󠁿

 [bufferrex](https://profiles.wordpress.org/buffereso/) 14. 12. 2024

It does what it says. Thanks.

![](https://secure.gravatar.com/avatar/4fa1e64c99d05cd03a3bdc1ed601e3d3a19d8c21b707f33545fd3f8c98c517cf?
s=60&d=retro&r=g)

### 󠀁[very useful for deleting unused posts and media](https://wordpress.org/support/topic/very-useful-for-deleting-unused-posts-and-media/)󠁿

 [tondosusanto](https://profiles.wordpress.org/tondosusanto/) 8. 12. 2024

This plugin is very useful for deleting unused posts and deleting media that takes
up space. Please continue developing this plugin because it really helps save storage.
Thank you very much

![](https://secure.gravatar.com/avatar/b782534925586423c93c925d3ed18842b32175ac61be382b5d2a4de1421ad8e7?
s=60&d=retro&r=g)

### 󠀁[Great Plugin, Super Simple To Use](https://wordpress.org/support/topic/great-plugin-super-simple-to-use-2/)󠁿

 [whitestagpennsylvania](https://profiles.wordpress.org/whitestagpennsylvania/) 
2. 1. 2024 1 odpověď

I downloaded this plugin just a few minutes ago and already know it’s exactly what
I need. The only thing I’d like to see changed is the opacity setting of the announcement
banners that are displayed. They’re a bit hard to read until you hover over them.
I’m going to try and contact the developer to see if I can get a modification done.

![](https://secure.gravatar.com/avatar/46e31146d1b143100e3062cf609dc785cdd46c55d51ae620561bc3441d63fcfa?
s=60&d=retro&r=g)

### 󠀁[Good working](https://wordpress.org/support/topic/good-working-31/)󠁿

 [Vu Tru So](https://profiles.wordpress.org/vutruso/) 14. 12. 2022

Thank you

![](https://secure.gravatar.com/avatar/b8510747da277f4ddc2270b18c12ec57a63a5704b63a9cd410b15a1718da26c7?
s=60&d=retro&r=g)

### 󠀁[USE LESS](https://wordpress.org/support/topic/use-less-4/)󠁿

 [sanjeev28](https://profiles.wordpress.org/sanjeev28/) 14. 11. 2022 5 odpovědí

DOES NOT WORK FOR SINGLE TIME

 [ Přečtěte si všech 6 recenzí ](https://wordpress.org/support/plugin/delete-post-with-attachments/reviews/)

## Autoři

Delete Post with Attachments je otevřený software. Následující lidé přispěli k vývoji
tohoto pluginu.

Spolupracovníci

 *   [ Alsvin Tech ](https://profiles.wordpress.org/alsvin/)

[Přeložte “Delete Post with Attachments” do svého jazyka.](https://translate.wordpress.org/projects/wp-plugins/delete-post-with-attachments)

### Zajímá vás vývoj?

[Prohledejte kód](https://plugins.trac.wordpress.org/browser/delete-post-with-attachments/),
podívejte se do [SVN repozitáře](https://plugins.svn.wordpress.org/delete-post-with-attachments/),
nebo se přihlaste k[ odběru protokolu vývoje](https://plugins.trac.wordpress.org/log/delete-post-with-attachments/)
pomocí [RSS](https://plugins.trac.wordpress.org/log/delete-post-with-attachments/?limit=100&mode=stop_on_copy&format=rss).

## Přehled změn

#### [2.0.0] – 2025‑08‑19

 * Added: support for Gutenberg editor
 * Added: support for Elementor
 * Added: support for Thrive Architect
 * Added: support for Divi Builder
 * Added: support for Brizy

#### 1.4

 * Fix – Compatibility issues with WordPress 6.8.1

#### 1.3

 * Fix – Compatibility issues with WordPress 6.8

#### 1.2

 * Fix – wp_delete_attachment function second param to bool instead of string

#### 1.1.3

 * Fix – Compatibility issues with WordPress 6.4

#### 1.1.2

 * Fix – Compatibility issues with WordPress 6.0

#### 1.1.1

 * Fix – Compatibility issues with WordPress 5.9

#### 1.1.0

 * New – Implement featured image deletion

#### 1.0.0

 * Initial release

## Meta

 *  Verze **2.0**
 *  Poslední aktualizace **před 8 měsíců**
 *  Aktivních instalací **1 000+**
 *  Verze WordPressu ** 4.1 nebo novější **
 *  Testováno až do WordPressu **6.8.5**
 *  Verze PHP ** 5.6 nebo novější **
 *  Jazyk
 * [English (US)](https://wordpress.org/plugins/delete-post-with-attachments/)
 * Štítků
 * [attachment](https://cs.wordpress.org/plugins/tags/attachment/)[cleanup](https://cs.wordpress.org/plugins/tags/cleanup/)
   [delete](https://cs.wordpress.org/plugins/tags/delete/)[media](https://cs.wordpress.org/plugins/tags/media/)
   [post](https://cs.wordpress.org/plugins/tags/post/)
 *  [Podrobnosti](https://cs.wordpress.org/plugins/delete-post-with-attachments/advanced/)

## Hodnocení

 4.2 z 5 hvězdiček.

 *  [  4 5hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/delete-post-with-attachments/reviews/?filter=5)
 *  [  1 4hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/delete-post-with-attachments/reviews/?filter=4)
 *  [  0 3hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/delete-post-with-attachments/reviews/?filter=3)
 *  [  0 2hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/delete-post-with-attachments/reviews/?filter=2)
 *  [  1 1hvězdičkové hodnocení     ](https://wordpress.org/support/plugin/delete-post-with-attachments/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/delete-post-with-attachments/reviews/#new-post)

[Zobrazit všechny recenze](https://wordpress.org/support/plugin/delete-post-with-attachments/reviews/)

## Spolupracovníci

 *   [ Alsvin Tech ](https://profiles.wordpress.org/alsvin/)

## Podpora

Potřebujete pomoc?

 [Fórum podpory](https://wordpress.org/support/plugin/delete-post-with-attachments/)