Hi greg515,
Welcome to the Apple Support Communities!
It sounds like you would like to sign out of iCloud on your device and furthermore would like to sign out of the Apple ID for Messages. I would also suggest signing out of FaceTime on the device as well. If you have already deleted your iCloud account from Settings > iCloud, the article attached will have the steps for signing out of Messages and FaceTime.
iOS: Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/ts4268
To sign out of your Apple ID
- Go to Settings > FaceTime, tap your Apple ID, and select Sign Out.
- Go to Settings > Messages > Send & Receive, tap your Apple ID, and select Sign Out.
Have a great day,
Joe