import os


def delete_file():
    if os.path.exists('folder/creating.txt'):
        print('Delete method')
        os.remove('folder/creating.txt')


class Delete:
    delete_file()

import os


def delete_file():
    if os.path.exists('folder/creating.txt'):
        print('Delete method')
        os.remove('folder/creating.txt')


class Delete:
    delete_file()
