#ContentDeletedNotificaion not triggered

1 messages · Page 1 of 1 (latest)

outer perch
#

Content deletednotification is not triggered when deleting content from backoffice. If the content is deleted programatically by _contentService.Delete(node), then the notification is triggered. Content has variants and the application uses Umbraco version 12.2. What could be the issue?

paper coral
#

The deleted notification is only triggered when you empty the recycle bin, you should probably hook into the Trashing notification.

outer perch
#

I wanted to remove the content from a third party index when a content is deleted. Whic content notification should be used

paper coral
#

Deleted.. or Trashing.. depending on what you think is correct.

When you use Trashing, the content can be restored from the trash so you'd need to handle that as well, if you use Deleted then you need to empty the recycle bin for the event to trigger.

outer perch
paper coral
#

ah you're right, it was renamed to ContentMovedToRecycleBinNotification

outer perch
#

Thanks. It worked.