<div dir="ltr">Hi Adam,<div><br></div><div>There is a story filed to add an ability to remove a plugin and its data.</div><div>Please follow it here <a href="https://pulp.plan.io/issues/7822">https://pulp.plan.io/issues/7822</a> and feel free to leave a comment to express your interest or reasons to remove.</div><div>We plan to work on it relatively soon, but it was not on a high priority list for us. There are 2 primary goals covered by this story and both don't seem extremely urgent:</div><div> - space, there is a lot of pulp2 data in pulp3 database that can be removed</div><div> - compatibility with other plugins, migration plugin won't be compatible with all new pulp3 releases forever, it would be good to be able to remove it; at the moment it's compatible with pulpcore 3.7+.</div><div><br></div><div>However if you think you are running into some problems because of having the plugin installed, it becomes important to address it sooner rather than later.</div><div>I tried to reproduce your issue by removing the migrated File or RPM repository/publication/distribution and all worked for me.</div><div>Could you share your steps to reproduce the problem? Here or feel free to file an issue in redmine <a href="https://pulp.plan.io/projects/migration/issues/new">https://pulp.plan.io/projects/migration/issues/new</a></div><div>The versions of pulpcore and plugins would be good to know (since I'm testing on the latest), as well as which resources and how you delete them. Seeing a specific cli command, API call or your script might be helpful.</div><div><br></div><div>Thank you,</div><div>Tanya</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 9, 2021 at 8:44 AM Winberg Adam <<a href="mailto:Adam.Winberg@smhi.se">Adam.Winberg@smhi.se</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div id="gmail-m_-5510328678702278499divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>I've finished my 2to3 migration and now I want to get rid of <span>pulp_2to3_migration related db entries. I cant find any documentation regarding this, what is the recommended procedure to do this?</span></p>
<p><span><br>
</span></p>
<p><span>Right now I get errors when trying to remove certain repos:</span></p>
<p><span><br>
</span></p>
<p><span><span style="font-family:Consolas,Courier,monospace;font-size:8pt">django.db.utils.IntegrityError: update or delete on table "core_publication" violates foreign key constraint "pulp_2to3_migration__pulp3_publication_id_221e8b1c_fk_core_publ"
 on table "pulp_2to3_migration_pulp2distributor"</span><br>
</span></p>
<p><span><br>
</span></p>
<p><span>//Adam</span></p>
<p><span><br>
</span></p>
</div>
</div>

_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div>