This article explains how to hard reset a Samsung tablet.
Samsung Galaxy Tab A (2019): How to perform a factory reset (hard reset) using the buttons?
Samsung tablets offer a built-in method for performing a hard reset. To reset your tablet via recovery mode, all you need is your tablet and a few minutes.
Turn off the tablet. Make sure it is completely off and not in sleep mode. Once your screen goes off, wait a few seconds and you are done.
Depending on your Samsung tablet, press and hold either the Power button and the Volume Up button or the Power button, Volume Up button and the Home button until your device powers on and enters recovery mode.