Thank you for asking your question on Just Answer!!!
You are corresponding with Joseph - Your personal On-Line “Electrical Consultant”
*****Click here to view my profile*****
It sounds like this is pre-wiring for a ceiling fan. So what you do in this case is just use the black, white and ground wires. Cap off the red – you will not need it.
Now to connect it – black to black, White to white and the bare ground to the green wire. Once you do this you will be good to go.
Hope this helps you out. If you should need anything further please don't hesitate to ask. Good Luck!!
100% customer satisfaction is my goal!!!
Have another electrical question?
Bookmark my profile page by adding me to your favorites.
Click Here: ContactCustomer----- A Just Answer Verified Electrical Expert!!!
Don’t forget to put “Question forCustomer/u>” in the Subject line!!!
In that case you will terminate the red wire to black of the light fixture. Then white to white and ground to the green wires. Then just cap off the black wire.