How can I resolve the error "The listing is not editable, must be active or expired but is removed"?

How can I resolve the error "The listing is not editable, must be active or expired but is removed"?

This error occurs when you try to list a product on Etsy that has a listing ID assigned in the app but has been removed from Etsy. To fix this:
  1. Unlink the product: In the app, go to the product with the error, and select 'Unlink Listing on App' (if the product has a listing ID assigned).
  2. Re-publish the product: After unlinking, publish the product again from the app to re-upload it to Etsy.
This will resolve the issue and allow the product to be listed correctly on Etsy.