def delete_file_from_file_share(self, file_name, parent_dir):
        """Delete the file from azure file share.

        Args:
            file_name (str): name of the file to delete
            parent_dir (ShareDirectory.from_connection_string): Object of ShareDirectory to perform operations
            on file share.
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            parent_dir.delete_file(file_name)
            applogger.debug(
                "{}(method={}) : {} : File deleted successfully, filename-{}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.NETSKOPE_REMOVE_DUPLICATES,
                    file_name,
                )
            )
        except ResourceNotFoundError:
            applogger.info(
                "{}(method={}) : {} : File not found while deleting, filename-{}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.NETSKOPE_REMOVE_DUPLICATES,
                    file_name,
                )
            )
        except Exception as error:
            applogger.error(
                "{}(method={}) : {} : Error while deleting file, Error-{}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.NETSKOPE_REMOVE_DUPLICATES,
                    error,
                )
            )
            raise NetskopeException()
Delete the file from azure file share.

        Args:
            file_name (str): name of the file to delete
            parent_dir (ShareDirectory.from_connection_string): Object of ShareDirectory to perform operations
            on file share.
        
Solutions/Netskopev2/Data Connectors/NetskopeDataConnector/StorageToSentinel/remove_duplicates_in_azure_storage.py