I just simply tried this for mac, I made a partition of 10 GB space from hard disk. After that i just click the " - " button below the partition map for remove the partition.
Now my actual macintosh capacity shows 10 GB less, please see the picture and help
Now my actual macintosh capacity shows 10 GB less, please see the picture and help