This article describes how you can remove the database for a specific connection in Jira Server.
Do not use this in production, make sure you have a back up of your DB.
Delete all DB tables
Clean-up by connection
This scripts find all the synced issues for a specific connection and then deletes all DB tables related to sync data for these issues.