Title: Widget &gt; Remove
Last modified: August 19, 2016

---

# Widget > Remove

 *  [digitalnature](https://wordpress.org/support/users/digitalnature/)
 * (@digitalnature)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/widget-gt-remove/)
 * Hi
 * Is there any way I can add a action to be executed after the user removes a widget
   from the sidebar? I didn’t find any action hooks for add_action() related to 
   this 🙁
 * The widget I’m working on stores temporary data into the database and I need 
   to attach a function that clears this data when the widget is removed.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Shane G.](https://wordpress.org/support/users/shane-g-1/)
 * (@shane-g-1)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/widget-gt-remove/#post-1289492)
 * Hi,
 * Refer this article:
 * [http://codex.wordpress.org/Function_Reference/add_action](http://codex.wordpress.org/Function_Reference/add_action)
 * Thanks,
 * Shane G.
 *  Thread Starter [digitalnature](https://wordpress.org/support/users/digitalnature/)
 * (@digitalnature)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/widget-gt-remove/#post-1289506)
 * well I know that. the problem is that I can’t find the appropriate action hook(
   $tag) for the widget “remove” link

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Widget > Remove’ is closed to new replies.

## Tags

 * [add_action](https://wordpress.org/support/topic-tag/add_action/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [digitalnature](https://wordpress.org/support/users/digitalnature/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/widget-gt-remove/#post-1289506)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
