---
schema_version: "1"
id: c047b9586b1a582ee6fa6d3f70b5bb2cb4219a28cb855d0fa0a169f5afa71756
title: Retrieve and Update Information
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/security/scoping-rules-dev-guide/guides/scoping-rules/quickstart/scoping-rules-quickstart-metadata-calls.md
canonical_url: https://developer.salesforce.com/docs/platform/scoping-rules-dev-guide/guide/scoping-rules-quickstart-metadata-calls.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: a1db0e9fff5de23545e82d920fb4815389b15bd88bb5bd19b096d116faa66112
products:
  - Scoping Rules Developer Guide
  - Security
---

# Retrieve and Update Information

Use the `deploy()` and `retrieve()` calls to move metadata (XML files) between Salesforce and a local file system. You can delete scoping rules by using the same procedure used to deploy components and including a delete manifest file.

|Required Editions|
|-----------------|
|Available in: Lightning Experience in **Performance**,**Unlimited**, and **Developer** editions.|

For more information, see [Deploying and Retrieving Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based.htm) in the Metadata API Developer Guide.

If the `userCriteria` or `recordCriteria` field contains a Salesforce org ID and you’re deploying to a different org than the org you retrieved them from, modify the Salesforce ID first.

**note:** We recommend that you don’t update the value of `targetEntity` after a scoping rule is created. Instead, delete the scoping rule and create another one with the correct values.

To delete components, use the same procedure as with deploying components, but include a delete manifest file that’s named destructiveChanges.xml and lists the components to delete. To learn more, see Deleting Components from an Organization.

**See Also**  


-   [*Metadata API Guide*: Deleting Components from an Organization](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_deleting_files.htm)

