compat/src/main/java/androidx/core/content/FileProvider.java
@Override
    public int delete(@NonNull Uri uri, @Nullable String selection,
            @Nullable String[] selectionArgs) {
        // ContentProvider has already checked granted permissions
        final File file = mStrategy.getFileForUri(uri);
        return file.delete() ? 1 : 0;
    }
/**
     * Deletes the file associated with the specified content URI, as
     * returned by {@link #getUriForFile(Context, String, File) getUriForFile()}. Notice that this
     * method does <b>not</b> throw an {@link java.io.IOException}; you must check its return value.
     *
     * @param uri A content URI for a file, as returned by
     * {@link #getUriForFile(Context, String, File) getUriForFile()}.
     * @param selection Ignored. Set to {@code null}.
     * @param selectionArgs Ignored. Set to {@code null}.
     * @return 1 if the delete succeeds; otherwise, 0.
     */
Deletes the file associated with the specified content URI, as
returned by  #getUriForFile(Context, String, File) getUriForFile(). Notice that this
method does not throw an  java.io.IOException; you must check its return value.

@param uri A content URI for a file, as returned by
#getUriForFile(Context, String, File) getUriForFile().
@param selection Ignored. Set to  null.
@param selectionArgs Ignored. Set to  null.
@return 1 if the delete succeeds; otherwise, 0.
Deletes the file associated with the specified content URI as returned by #getUriForFile ( Context String File ) getUriForFile () . Notice that this method does not throw an java . io . IOException ; you must check its return value . @param uri A content URI for a file as returned by #getUriForFile ( Context String File ) getUriForFile () . @param selection Ignored . Set to null . @param selectionArgs Ignored . Set to null . @return 1 if the delete succeeds ; otherwise 0 .
@Override
    public int delete(@NonNull Uri uri, @Nullable String selection,
            @Nullable String[] selectionArgs) {
        final File file = mStrategy.getFileForUri(uri);
        return file.delete() ? 1 : 0;
    }
@ Override public int delete ( @ NonNull Uri uri , @ Nullable String selection , @ Nullable String [ ] selectionArgs ) { final File file = mStrategy . getFileForUri ( uri ) ; return file . delete ( ) ? 1 : 0 ; }
Deletes the file associated with the specified content URI, as
 returned by {@link #getUriForFile(Context, String, File) getUriForFile()}.
Deletes the file associated with the specified content URI as returned by { @link #getUriForFile ( Context String File ) getUriForFile () } .
// ContentProvider has already checked granted permissions