If you delete your affiliate links, users on social media will no longer be able to view or purchase the products through those links. As a result, you will not earn any commission from deleted links.
However, the collections associated with those links will not be deleted, and you can create new links from those collections to share on your social media accounts.