how can i write the code for backend delete. I have added the in built delete feature but its not effectively removing the event in the database .
Please take a look at the documentation: https://doc.daypilot.org/calendar/event-deleting/
You need to use onEventDelete event handler to call backend_delete.php endpoint on the server side. You need to create backend_delete.php which will delete the event record using SQL.