Get valid content values before deleting existing data

Signed-off-by: Ian Lake <ian.hannibal.lake@gmail.com>