Skip to content
Log in

How to delete deprecated metadata

On this page

In our ongoing efforts to enhance existing features, we occasionally need to remove the use of an object or field from our package. When this occurs, we append a label to the field or object to show as [Deprecated] indicating that they are no longer in use.

Periodically, we remove deprecated metadata from our package. This ensures that any fresh installations of StoreConnect do not include these deprecated objects and fields. However, if you already have the metadata present in your org, it will not be automatically deleted, even when upgrading to the latest version.

Once you have been upgraded to a StoreConnect package version that no longer has the deleted metadata, you can manually remove it from your org.

Download the zip file for your package version

Each zip removes only the fields that were deleted from the package at that version. The zips are not cumulative. If your org was installed before more than one of these versions, deploy every zip whose version is newer than the package you installed with, one at a time. The order does not matter, because no batch depends on another. If you have already deployed an earlier zip, deploy only the newer ones.

Do not combine the zips into one deployment. A deployment that tries to delete a field your org does not have, because an earlier zip already removed it or because your org never had that package version, reports a warning, and with Rollback On Error enabled the whole deployment fails.

For package versions 22 and up

API Version: 63

What will be deleted

From the PricebookEntry object:

  • s_c__Balloon_Price__c
  • s_c__Setup_Price__c

The fields with the same names on the s_c__Subscription__c object are not deleted by this zip.

For package versions 21 and up

API Version: 63

What will be deleted

From the Order object:

  • s_c__Customer_Notes__c
  • s_c__Shipping_Cost__c
  • s_c__Total_Taxes__c

From the s_c__Discount__c object:

  • s_c__Ending_Date__c
  • s_c__Starting_Date__c

From the s_c__Shipment__c object:

  • s_c__Order_Item_Id__c
  • s_c__Status__c

From the s_c__Shipping_Rate__c object:

  • s_c__Unit_Cost__c

From the s_c__Stock_Location__c object:

  • s_c__Click_And_Collect_Allowed__c
  • s_c__Fulfill_Online_Orders__c

From the s_c__Article_Category__c object:

  • s_c__Slug__c

From the s_c__Product_Category__c object:

  • s_c__Slug__c

From the s_c__Media__c object:

  • s_c__Embed_Video_Url__c
  • s_c__File__c
  • s_c__Large_Image__c
  • s_c__Medium_Image__c
  • s_c__Original_Image__c
  • s_c__Thumbnail_Image__c

If you are on an earlier version than v21, see the alternative zip file below.

Remove deleted metadata from your org

  1. Navigate to Workbench.
  2. Select the API version to match the downloaded zip file you are using.
  3. Click Login with Salesforce. You may get logged in automatically, otherwise log in with your Salesforce username and password.
  4. Once logged in, in the menu bar, hover over Migration and click Deploy.
  5. Click Choose File and select the zip file you downloaded above.
  6. Enable Rollback On Error.
  7. Choose a Test Level.
  8. Click Next.
  9. Click Deploy.
  10. Wait for tests and deploy to complete with a status of Success.

Workbench Deploy page with Rollback On Error enabled, Test Level selected, and a successful deployment status

Downloadable zip for pre-v21 users

For package versions 13.3 and up

API Version: 57

What will be deleted

From the s_c__Promotion_Credit__c object:

  • s_c__Code__c

From the s_c__Promotion__c object:

  • s_c__Code__c

From the s_c__Booking_Attendee__c object:

  • All fields
  • The object itself will also be deleted

Was this article helpful?

Was this article helpful?