Force folder remove

Generally, in case you run into folder data corruption or inaccessibility you need to send this api POST call:

(From CLI and not from inside the UI)

curl -A "SiaPrime-Agent" -u "":<apipassword> --data "path=<the shared folder path>&force=true" localhost:4280/host/storage/folders/remove

to force removal of that folder from the shared folders list. Replace the <apipassword> with the string you can find in the apipasssword file and the <the shared folder path> with the path it is listed in the host folder list.

But that (the&force=true part of the post data) should be used only after trying to remove folder “normally” with spc or ui terminal, that is suggest first try the ways without the force.

Note that:

/host/storage/folders/remove
is the api endpoint