delet write_mem