checks for input parameters and allow to keep or erase data on the
device