What function should I add in source code to make my events removable? There are not icons in the top right corner of events.
In the Lite (open-source) edition the built-in delete icon is not supported. In the Pro edition you can enable it using eventDeleteHandling property:
dp.eventDeleteHandling = "Update";