@pixelfed I saw in a few applications that is required to type a particular word or phrase to perform that kind of actions.
Something like keeping the "Delete account" action disabled until the user, after being prompted, manually enters the phrase "Irreversibly delete my account and content forever". Or a neardy alternative "Throw all my photos and videos into the depths of Mount Doom"