Delete File

Method

$api->delete_file

Parameters

Example

Delete test.txt from the dataset username/repo:

<?php
include 'hub.php';
$api = new Hub('hf_***');
$api->delete_file('username/repo', 'test.txt', 'dataset');