remove_all_files_from_downloads

Function remove_all_files_from_downloads 

Source
pub async fn remove_all_files_from_downloads(
    only_active: bool,
    only_completed: bool,
    delete_from_cache: bool,
    client_id: i32,
) -> Result<(), Error>
Expand description

Removes all files from the file download list

ยงArguments

  • only_active - Pass true to remove only active downloads, including paused
  • only_completed - Pass true to remove only completed downloads
  • delete_from_cache - Pass true to delete the file from the TDLib file cache
  • client_id - The client id to send the request to