The db_delete_file function requests the database server to delete filename. This can be used after backing up and renaming the transaction log to delete the old transaction log. See DB_BACKUP_READ_RENAME_LOG
in db_backup function.
You must be connected to a user ID with DBA authority.