-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete tenant should delete data #1233
Comments
I think it's taken care by garbage collection task. |
Yeah but it's slow. I wanted to use permify for my game. |
Ah, I see your use case! But it would be tricky to do it for them as they didn't use foreign key to optimize performance. Your best bet is to add some random prefix/suffix to tenant name. |
Yeah I think its the easiest way. delete the old tenant and create a new one and let the gc cleanup afterwords. |
I just checked the code and it seems GC doesn't clean-up for deleted tenant but rather cleans-up based on last transaction id (like deleting records having expired tx id less than the last tx id). So I guess not an easy workaround! |
Is your feature request related to a problem? Please describe.
I wanted to reset the tenant. if i delete the tenant the relations etc stayed behind
Describe the solution you'd like
on tenant deletion, the rest of the data, linked to the tenant, should be deleted
Describe alternatives you've considered
deleting related data "manualy"
The text was updated successfully, but these errors were encountered: