Added delete_all function