Delete attributes from native schema | Community
Skip to main content
wkt85768776
Level 3
Nov 29, 2017 2:09 PM UTC
Solved

Delete attributes from native schema

Hello, i would like to know if i can delete an attribute from a native schema of AdobeCampaign. I need to delete some but i dont know how does it will affect neolane or the DB. I will also need to know how to do it .

thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vraghav
vraghavAccepted solution
Employee
Nov 29, 2017 10:51 PM UTC

To delete an existing attribute on factory schemas follow the steps outlined here

  • Extend the scehma
  • Define the same attribute again in this extended schema (name must match) and then define _operation="delete"
  • Save the schema and update database structure.

<attribute name="registrationToken" _operation="delete"/>

Should you do this?

I would not recommend it as you never know what can break in the system when deletion of an attribute happens.

Regards,
Vipul

17 replies

wkt85768776
Level 3
Nov 30, 2017 2:03 PM UTC

ok thank you

Translate
david--garcia
Level 10
Nov 30, 2017 1:42 PM UTC

There are hundreds of fields that are not used most of the time on Adobe Campaign and will probably never get populated, just ignore them. You may end up breaking some kind of relationship between tables or get errors on the console as these fields are referenced by input forms and other features.

Translate
wkt85768776
Level 3
Nov 30, 2017 1:23 PM UTC

i dont need them in my new instance for now. thats why i want to delete them.

Translate
david--garcia
Level 10
Nov 30, 2017 1:01 PM UTC

Why do you need to delete it? this is required for push notifications to work.

Translate
wkt85768776
Level 3
Nov 30, 2017 11:14 AM UTC

im trying to delete some attributes of mobile app in a native schema, but i cant achieve that.

i tried to use  <attribute name="registrationToken" _operation="delete"/>  but i cant update in the DB

Translate
david--garcia
Level 10
Nov 30, 2017 11:07 AM UTC

I support Vipuls approach.

@OP what are you trying to achieve by deleting OOTB attributes?

Translate
vraghav
vraghavAccepted solution
Employee
Nov 29, 2017 10:51 PM UTC

To delete an existing attribute on factory schemas follow the steps outlined here

  • Extend the scehma
  • Define the same attribute again in this extended schema (name must match) and then define _operation="delete"
  • Save the schema and update database structure.

<attribute name="registrationToken" _operation="delete"/>

Should you do this?

I would not recommend it as you never know what can break in the system when deletion of an attribute happens.

Regards,
Vipul

Translate