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

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