deleteSharePermission: ( shareId: string | number, token?: string )
This method is used to unshare a file.
import { deleteSharePermission } from "@eueno/lib-browser"; const unShare = async () => { try { let shareId = "46"; await deleteSharePermission(shareId); } catch (error) { console.log(error); } };
Response of example:
{"msg":"success"}
Last updated 1 year ago
shareId
string or number
Yes
The share id.
token
string
No
The token of user.