Formatting partition just mark the files as deleted, but the files still exists on the partition and can be recovered via file recovery programs.
To remove the data completely and avoid data recovery, you can turn to Qiling Disk Master to wipe disk or wipe partition.