<div dir="auto">Hi Tony,<div dir="auto"><br></div><div dir="auto">There is no default retention policy defined.</div><div dir="auto">To clean up such records for cinder you can run command</div><div dir="auto"><span style="font-family:menlo,monaco,consolas,"courier new",monospace;font-size:14px;font-weight:700;background-color:rgb(255,255,255)">cinder-manage</span><span style="font-family:menlo,monaco,consolas,"courier new",monospace;font-size:14px;font-weight:700;background-color:rgb(255,255,255)"> </span><span style="font-family:menlo,monaco,consolas,"courier new",monospace;font-size:14px;font-weight:700;background-color:rgb(255,255,255)">db</span><span style="font-family:menlo,monaco,consolas,"courier new",monospace;font-size:14px;font-weight:700;background-color:rgb(255,255,255)"> </span><span style="font-family:menlo,monaco,consolas,"courier new",monospace;font-size:14px;font-weight:700;background-color:rgb(255,255,255)">purge <days to retain></span></div><div dir="auto"><span style="font-family:menlo,monaco,consolas,"courier new",monospace;font-size:14px;font-weight:700;background-color:rgb(255,255,255)"><br></span></div><div dir="auto"><br></div><div dir="auto">For nova it's a bit more complicated as first you would archive these records and only then purge them from shadow tables. This is done with nova-manage command.<br></div><div dir="auto">You can check docs regarding it's usage:</div><div dir="auto"><a href="https://docs.openstack.org/nova/latest/cli/nova-manage.html#db-archive-deleted-rows">https://docs.openstack.org/nova/latest/cli/nova-manage.html#db-archive-deleted-rows</a></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">вс, 24 апр. 2022 г., 6:04 Tony Liu <<a href="mailto:tonyliu0592@hotmail.com">tonyliu0592@hotmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I see the record for deleted resource stay in database.<br>
What's the retention policy for those records?<br>
Is it configurable?<br>
Any manual cleanup is required?<br>
<br>
<br>
Thanks!<br>
Tony<br>
<br>
</blockquote></div></div></div>