Skip to content

Bug: StorageBucket.remove() only accepts a single string, but docs show array usage #58

@Davidson3556

Description

@Davidson3556

Bug Description

The README.md documents bucket.remove() as accepting an array of file paths:

const { data, error } = await insforge.storage
.from('avatars')
.remove(['user-avatar.png']);
However, the actual implementation in src/modules/storage.ts (line 343) only accepts a single string:

async remove(path: string): Promise<StorageResponse<{ message: string }>>
Users following the README will get a type error when passing an array.

Expected Behavior

remove() should accept string | string[] and support batch deletion as documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions