Programming Learning
Programming Learning

Reputation: 21

Remove a Field from a List in Sharepoint 2010

How to remove a field from a List in Sharepoint 2010?

Any help please?

Upvotes: 1

Views: 3304

Answers (2)

Rob Windsor
Rob Windsor

Reputation: 6859

I assume you mean using code. This code should do the trick.

SPWeb web = SPContext.Current.Web;
SPList list = web.Lists["List Name"];
SPField field = list.Fields["Field Name"];
field.Delete();

Upvotes: 2

ricardordz
ricardordz

Reputation: 235

just go to your list, go to List Settings (in the ribbon), scroll down to your fields (columns) and delete it.

Is not a big deal.

Best regards!

Upvotes: 0

Related Questions