feat(pre-delete): Add support for executing pre-delete process on context deletion (refs #4588)