Remove Attachments (Data Management Tools)
Summary
Removes attachments from geodatabase feature class or table records.
Since attachments are not actually stored in the input dataset, no changes will be made to that feature class or table. Changes will be made to the related geodatabase table that stores the attachments and maintains linkage with the input dataset. A match table is used to identify the input records (or attribute groups of records) that will have attachments removed.
Learn more about working with the tools in the Attachments toolset
Illustration

Usage
This tool does not honor selections.
An alternative to using this tool is to delete selected records from the InputDataset__ATTACH table in the same geodatabase as the Input Dataset value, which stores attachments and maintains linkage to the Input Dataset value.
This tool supports an ArcGIS Enterprise hosted feature layer as input.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Dataset |
A geodatabase table or feature class from which attachments will be removed. Attachments are not removed directly from this table; they are removed from the related attachment table that stores the attachments. The dataset must have attachments enabled. |
Table View |
|
Input Join Field |
A field from the Input Dataset parameter value that contains values that match the values in the Match Join Field parameter value. Records that have join field values that match the Input Dataset parameter value and the Match Table parameter value will have attachments removed. This field can be an Object ID field or any other identifying attribute. |
Field |
|
Match Table |
A table that identifies which input records will have attachments removed. |
Table View |
|
Match Join Field |
A field from the match table that indicates which records in the Input Dataset parameter value will have specified attachments removed. This field can have values that match the Input Dataset Object ID field or some other identifying attribute. |
Field |
|
Match Name Field (Optional) |
A field from the match table that contains the names of the attachments that will be removed from the Input Dataset parameter value's records. If no name field is specified, all attachments will be removed from each record specified in the Match Join Field parameter value. If a name field is specified but a record has a null or empty value in the name field, all attachments will be removed from that record. This field's values should be the short names of the attachments to remove, not the full paths to the files used to make the original attachments. |
Field |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Updated Input Dataset |
The updated input dataset. |
Table View |
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes