How we can implement data/tables delete permission in shopware plugin?

Hi, I am developing a plugin. I read the following from

“If you click on “Install / Uninstall” in the plugin manager, the shop owner must be offered the options “completely delete” or “keep the plugin data and table adjustments”.”

https://docs.shopware.com/en/plugin-standard-for-community-store.

How we can implement this?

Are there any free plugins contains this feature?

Or any Shopware documentation is for this feature?

Please help me.

https://developers.shopware.com/developers-guide/shopware-5-plugin-update-guide/#uninstall

https://github.com/shopwareLabs/SwagPaymentPayPalUnified/blob/master/Setup/Uninstaller.php#L48

This should make it clear, i guess.

1 „Gefällt mir“

Thank you @Moritz Naczenski for your quick response.