Validation on delete

Hi Squidex Team,

Is it possible to run the validation before delete content? I want to validate whether this content is referenced by other schema or not. And reject if it is.

Current behavior

Squidex allows to delete content even if it is referenced from other schema.

Expected behavior

If it is referenced, Squidex should reject the deletion.

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ X ] Cloud version

Version: API 4.1.3.0

Browser:

  • [ X ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ X ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ X ] Edge

Others:

Hi, in general it is possible to use a script, but there is no action to check references in scripts. So it is not possible yet.

Read more about scripts: https://docs.squidex.io/02-documentation/developer-guides/scripting