add safety for delete_failed