# MigrationSourceObjectPolicy

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.MigrationSourceObjectPolicy/

Specifies what is done to the source object after the migration.

- **Full name:** `MFiles.MigrationSourceObjectPolicy`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-MIGRATION_SOURCE_OBJECT_POLICY_UNSPECIFIED"></a>`MIGRATION_SOURCE_OBJECT_POLICY_UNSPECIFIED` | 0 | Unspecified. |
| <a id="v-MIGRATION_SOURCE_OBJECT_POLICY_KEEP"></a>`MIGRATION_SOURCE_OBJECT_POLICY_KEEP` | 1 | The source object is left as-is. |
| <a id="v-MIGRATION_SOURCE_OBJECT_POLICY_DELETE"></a>`MIGRATION_SOURCE_OBJECT_POLICY_DELETE` | 2 | The source object is deleted. |
| <a id="v-MIGRATION_SOURCE_OBJECT_POLICY_DESTROY"></a>`MIGRATION_SOURCE_OBJECT_POLICY_DESTROY` | 3 | The source object is destroyed. |

<a id="used-in-fields"></a>

## Used in fields

- [`MigrateObjectParams.source_object_policy`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MigrateObjectParams/index.md#f-source_object_policy): Specifies what is done to the source object after the migration.
