added delete_all option