backup before delete function dev