Get Example source ABAP code based on a different SAP table
Standard SAP Help for DELETE_DATA_SET
DELETE DATASET
Short Reference • DELETE DATASET ABAP Statement
ABAP Syntax DELETE DATASET dset.
What does it do? The statement deletes the file specified in dset.dset expects a character-like data object containing the physical name of the file. The file can be opened or closed.
Latest notes:When a file is deleted, automatic authorization checks are performed; self-programmed checks may also be necessary.
Security Note
When specified dynamically, dset is a dynamic programming technique and can present a serious security risk if not used correctly. If the content of dset is used in a program from an external source, it must first be checked thoroughly. See Directory Traversal.
ABAP_SUBRC_GENERAL sy-subrcMeaning 0File has been deleted. 4File could not be deleted.