Share cannot be deleted as it is shared via Samba. Unshare and try again

[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]

Brief description of the problem

Can’t delete a share. Error says that it is attached to Samba. Samba service has been turned off and system rebooted. Still can’t delete the share.

Detailed step by step instructions to reproduce the problem

[write here]

Web-UI screenshot

[Drag and drop the image here]

Error Traceback provided on the Web-UI

[paste here]

@calender7 welcome to the Rockstor community.

can you also share what version of Rockstor you’re currently running?

when you do turn on the Samba service, does this show up as a samba export? I suspect, that even if the service is turned off, any existing (and not explicitly deleted) Samba exports are stored in the database, against which the share deletion checks, in this piece of code: