def METHOD_NAME(metadata):
    """Delete a file from S3 bucket after the test ends.
    Args:
        metadata (dict): Metadata to get the parameters.
    """
    yield
    bucket_name = metadata['bucket_name']
    filename = metadata.get('filename')
    if filename is not None:
        delete_file(filename=filename, bucket_name=bucket_name)
        logger.debug('Deleted file: %s from bucket %s', filename, bucket_name)