Remove app names in OS X Yosemite Dock

You have to edit the file ~/Library/Preferences/com.apple.dock.plist.

You need to replace every label like "file-label" => "AppName" with "file-label" => "".

Restart the Dock or logout and back again to activate the changes.