Delete ABAP Repository Object
sap_delete_objectPermanently delete an ABAP repository object from SAP, with optional transport recording. Verify dependencies first to avoid breaking references.
Instructions
Delete an ABAP repository object. This PERMANENTLY REMOVES the object from SAP.
The tool locks the object, deletes it, and records the change in the transport if provided. This cannot be undone (except by restoring from a transport or backup).
Args:
object_type, object_name (and function_group for functions).
transport: required for non-local objects.
response_format.
Returns (json): { objectType, objectName, message }.
Examples:
"Delete program ZOLD_PROG from $TMP" -> object_type='program', object_name='ZOLD_PROG'.
"Delete class ZCL_OLD from transport DEVK900123" -> object_type='class', object_name='ZCL_OLD', transport='DEVK900123'. Notes:
Run sap_where_used first to verify nothing depends on this object.
Deleting a function group removes all its function modules too.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transport | No | Transport number. Required for non-$TMP (transportable) objects. | |
| object_name | Yes | Object name. Must exist. | |
| object_type | Yes | Kind of object to delete. | |
| function_group | No | Required when object_type='function'. | |
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |