feat(pre-delete): Support for executing module's pre-delete before context deletion (refs #4588)

- Add support for executing module's pre-delete before deleting a
  context.
- Add CLI command for deleting a context.