User task assignment behaviour on Process Instance Deletion

Hi Team,

I have a process instance where I have User Tasks assign(For e.g. 1000 in number) to different users.
And at some given point of time I would like to delete the process instance.
My question is will the User task still be assigned to those 1000 users or they will be unassigned automatically as we delete the process instance ?

I am using below rest api to check the count of tasks assigned to a particular user

As per my understanding the user tasks should be unassigned and if i hit above Rest Api i would expect count to be 0(Zero)

Please can you help me understand.

Hi @kv8288,

Yes, all related tasks should be deleted automatically once the process instance gets deleted.