Prevent shape.remove

As far as I understood how the rules work, they are defined beforehand and added as the model instance is created. In my use case, an answer from the backend server should say if the selected task should be blocked from deletion or not- this answer may constantly change as other users are working on the process.