# How do I know that actor is deleted from the map in the editor

**URL:** <https://forums.unrealengine.com/t/how-do-i-know-that-actor-is-deleted-from-the-map-in-the-editor/468175>\
**Category:** Community & Industry Discussion\
**Tags:** deletion, unreal-engine, question\
**Created:** [July 15, 2020, 12:08am UTC](https://forums.unrealengine.com/t/how-do-i-know-that-actor-is-deleted-from-the-map-in-the-editor/468175 "2020-07-15T00:08:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_71b31e23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_71b31e23](https://forums.unrealengine.com/u/anonymous_user_71b31e23)\
**Post date:** [July 15, 2020, 12:08am UTC](https://forums.unrealengine.com/t/how-do-i-know-that-actor-is-deleted-from-the-map-in-the-editor/468175/1 "2020-07-15T00:08:21Z")

</div>

I have an actor what does some stuff when somebody adds it to one of the levels. (It runs when it is constructed). But I want to revert that modifications if the actor is deleted from the level, and ONLY if deleted. I tried it when it gets destroyed, and it is not beginplay not yet fired,but it got destroyed when I close the editor. So the issue is it reverts everything everytime when I close the editor. Does somebody know what event fires when something is deleted from the level in the editor? I can live with some workaround too, if somebody has any.
