Navigate to the repository's settings, scroll down to the danger zone and select 'Leave fork network'.
Danger Zone with option to leave fork network
Your repository will not be deleted and it will no longer be a fork.