please help..why event is not deleted?

hello there, can someone help me here…
i manage to create the event in my scheduler and its update in my database.but when i try to delete the event, its not deleted from the scheduler and my database so every time i refresh, the event is still there even i already delete it :confused: . what happen? did i forget something? please help me .
here my code: MyScheduler:

[code]<%@ Page Language=“C#” AutoEventWireup=“true” CodeFile=“MyScheduler.aspx.cs” Inherits=“MyScheduler” %>

<script type="text/javascript" src="dhtmlxScheduler/codebase/dhtmlxscheduler.js" charset= "utf-8"></script>
<script type="text/javascript" src="dhtmlxScheduler/codebase/ext/dhtmlxscheduler_agenda_view.js" charset="utf-8"></script>
<script type="text/javascript" src="dhtmlxScheduler/codebase/ext/dhtmlxscheduler_year_view.js" charset="utf-8"></script>
<script type="text/javascript" src="dhtmlxScheduler/codebase/ext/dhtmlxscheduler_units.js" charset="utf-8"></script>
<style type="text/css">
html, body{
		<div class="dhx_cal_prev_button">&nbsp;</div>
		<div class="dhx_cal_next_button">&nbsp;</div>
		<div class="dhx_cal_today_button"></div>

		<div class="dhx_cal_date"></div>
		<div class="dhx_cal_tab" name="day_tab" style="right:225px;"></div>
		<div class="dhx_cal_tab" name="week_tab" style="right:161px;"></div>
		<div class="dhx_cal_tab" name="unit_tab" style="right:300px;"></div>
		<div class="dhx_cal_tab" name="month_tab" style="right:98px;"></div>
        <div class="dhx_cal_tab" name="agenda_tab" style="right:35px;"></div>
	<div class="dhx_cal_header">
	<div class="dhx_cal_data">

really appreciate your help…

in your code:

scheduler.deleteEvent(id, true); - throws js error and dataprocessor never gets initialized

thanks for replying me :slight_smile:
already solved that problem now