Delete partition code seems done but it still doesn't work