Skip to main content

Delete File Async

Description

Deletes file async.

Function Signature:

def delete_file_async(file_path: str) -> Any:

Parameters

  • file_path (str): Full path to the file on disk.

Returns

  • Any: Return value from the function.

Example Usage

# Example usage
file_path = "example"
result = delete_file_async(file_path)
print(result)

Behavior

  • Executes the function logic with the provided arguments.
  • On success, returns the computed value or result object.

Error Handling

  • Exceptions are handled within the function where implemented.