moved the wipe function to not be api part