I don't want the dock that is at the bottom of the screen. I don't want to hide it but completely remove it. How can this be done? If not possible, why not?
Your best bet is to leave it there so you won't mess with other services but shrink it to super small size using the following terminal command:
defaults write com.apple.dock tilesize -int 1
see below for example .. that's wicked small.
then pin it to one side with the following terminal command:
defaults write com.apple.dock pinning -string start
then hide it. It should be totally out of the way at that point unless you mouse all the way over in the extreme bottom left hand corner.
You can remove Dock.app, change its permissions, or disable the launchd plist that opens it:
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Dock.plist
To revert the changes, replace
load or remove the entry in
It also disables Mission Control, full screen windows, the Notification Center sidebar, the application switcher, Launchpad, Dashboard, and it makes desktop backgrounds gray.
This would increase the delay before the Dock is shown to 2 seconds:
defaults write com.apple.Dock autohide-delay -float 2; killall Dock
As you mentioned in a comment, you just want a full screen app. In that case, see this answer to do that.
What do you mean by "my application"? If it's a third-party application with a full screen mode, file a bug report with the developer. If you're developing your own application, use CGDisplayCapture. If you're trying to maximise everything, try using your Mac like Apple wants you to. It sounds obnoxious, but it'll be easier for you in the long run.
If, however, you really do want to bend the OS X UI to breaking point (not that far, admittedly), follow Bryan's advice. Better still, stick it in an AppleScript, along with code to reverse it, and stick it in the Script menu. Then just select that item to switch between normal and hidden-away-really-small-in-the-bottom-left mode. And don't forget to ask the developer for a full-screen mode!
Theoretically anything is possible I suppose, the Dock application is in /System/Library/CoreServices so for starters you could pull it out of there I suppose.
But I don't think Finder will like that, and you also will lose the Expose feature, and maybe Dashboard too. I can't imagine why disabling/removing it would be preferable to simply hiding it.