deleteSharePermission()

Syntax

deleteSharePermission: (
    shareId: string | number, 
    token?: string
)

This method is used to unshare a file.

Parameters

Example

  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