# A post's TopicEmbed isn't destroyed when the post is deleted

**URL:** <https://meta.discourse.org/t/a-posts-topicembed-isnt-destroyed-when-the-post-is-deleted/60904>\
**Category:** Development\
**Created:** [13 Abril, 2017 08:32 UTC](https://meta.discourse.org/t/a-posts-topicembed-isnt-destroyed-when-the-post-is-deleted/60904 "2017-04-13T08:32:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [13 Abril, 2017 09:11 UTC](https://meta.discourse.org/t/a-posts-topicembed-isnt-destroyed-when-the-post-is-deleted/60904/3 "2017-04-13T09:11:22Z")

</div>

> [@tgxworld](#):
>
> How are you fetching topic embeds?

I’m not fetching them, the `embed_url` is sent as a property when a post is published on Discourse through the wp-discourse plugin. The post can’t be created if the `embed_url` already exists because `TopicEmbed` validates the uniqueness of `embed_url`.

---

_[View the full topic](https://meta.discourse.org/t/a-posts-topicembed-isnt-destroyed-when-the-post-is-deleted/60904)._
