Use the following AT command:
AT#DSCRIPT=“<script_name>“
where
<script_name>: file name
Using the AT#DSCRIPT command delete from the module memory a saved script, compiled script, generic text or binary file.
Type for example
AT#DSCRIPT=”a.py”
Wait for the result: OK or ERROR.