add delete_all function