To disable 2FA, first log in to the control panel by using either your 2FA device or a backup code.
Once you’ve logged in, open the User profile menu and follow the link to the Security page in the left navigation. When you move the mouse cursor over the Two-factor Authentication Enabled button, the text changes to Disable Two-factor Authentication. Click Disable Two-factor Authentication.
When you select that button, a window titled Disable two-factor authentication? opens to confirm your choice. Click the Yes, Disable 2FA button to disable 2FA.
If you’ve lost access to your 2FA device or can’t receive the code via SMS, try searching your computer for the Backup Codes text file “digitalocean_backupcodes.txt”. If your backup method is not functioning, then you’ll need to submit a ticket to the DigitalOcean support team, who can help you restore your access.
You can read more about it here - https://www.digitalocean.com/docs/accounts/security/2fa/