Find any files in the home directory that end with 16 characters (containing numbers and/or lowercase letters) followed by either ".txt" or ".json" and delete them.
find ~/ -iregex ".*[0-9a-f]\{16\}\.(txt|json)" -delete