Title: Remove one event programatically from calendar
Last modified: August 21, 2016

---

# Remove one event programatically from calendar

 *  [mariachirs](https://wordpress.org/support/users/mariachirs/)
 * (@mariachirs)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/remove-one-event-programatically-from-calendar/)
 * Hi good morning
 * Could you help me, i need to remove one event from calendar programatically with
   php, how can i do this?
 * Thank you in advance
 * [http://wordpress.org/plugins/event-organiser/](http://wordpress.org/plugins/event-organiser/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * (@stephenharris)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/remove-one-event-programatically-from-calendar/#post-4511321)
 * Is the one _date_ of an event, or one event. If the former then you probably 
   want to call `eo_update_event()` and included the date in the ‘exclude’ argument.
   See codex: [http://codex.wp-event-organiser.com/function-eo_update_event.html](http://codex.wp-event-organiser.com/function-eo_update_event.html).
   Alternatively you could use `_eventorganiser_remove_occurrence()` – but this 
   is a private function. That is, in future updates it may be changed or removed
   without warning.
 * If you want to delete the entire event, you can use `wp_delete_post()`.

Viewing 1 replies (of 1 total)

The topic ‘Remove one event programatically from calendar’ is closed to new replies.

 * ![](https://ps.w.org/event-organiser/assets/icon-256x256.png?rev=978123)
 * [Event Organiser](https://wordpress.org/plugins/event-organiser/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-organiser/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-organiser/)
 * [Active Topics](https://wordpress.org/support/plugin/event-organiser/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-organiser/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-organiser/reviews/)

## Tags

 * [calendar](https://wordpress.org/support/topic-tag/calendar/)
 * [event](https://wordpress.org/support/topic-tag/event/)
 * [programatically](https://wordpress.org/support/topic-tag/programatically/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stephen Harris](https://wordpress.org/support/users/stephenharris/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/remove-one-event-programatically-from-calendar/#post-4511321)
 * Status: not resolved