Your listener id (must be unique for all user events)
Your listener function
// Each time layer features are deleted, this method is processed
JMap.Event.Feature.on.deletion(
"custom-feature-deletion",
params => console.info(`For layer id="${params.layerId}", deleted feature ids: ${params.deletedFeatures.map(f => f.id).join(", ")}`)
)
JMap.Event.Feature.on.deletion
This event is triggered when a feature has been deleted.