If you want to create an official XBian image we can use for distribution, follow these steps:
root@xbian:~# all-clean
Notes
This auto process will try to guess the minimum possible size for the destination image file. Unfortunately this leads to a new rootfs (and image) of about ~600mb. This will force btrfs to use mixed-data-metadata structure (because the filesystem is too small). According to the documentation of BTRFS, such a filesystem (even after resize) will keep this structure, which can lead to performance hits. The documentation isn't very specific about what they consider a small or big filesystem and what the actual performance hit is. Probably, it won't make any difference on the SD cards we use.
Personal usage
If you want to create an image for your personal use only, then you of course already flashed the image and upgraded it. In that case skip the flash and all-clean step.