Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Unpublish a duplicate dat #637

Open
CristianCantoro opened this issue Dec 13, 2018 · 5 comments
Open

Unpublish a duplicate dat #637

CristianCantoro opened this issue Dec 13, 2018 · 5 comments

Comments

@CristianCantoro
Copy link

I have done a dat publish two times on the same dat with different titles and I have got this:

I would like to eliminate one of them.

@joehand
Copy link
Contributor

joehand commented Dec 13, 2018

(Not tested but...) can you run dat unpublish --name pagecounts-ez ?

@joehand
Copy link
Contributor

joehand commented Dec 13, 2018

Oh nope, that won't work. If you cd data-dir and then dat unpublish it will unpublish whatever name is in the dat.json file. So you can set it to the one you want to unpublish then run it. If that makes sense... ?

Sorry, this should be more straightforward!

@CristianCantoro CristianCantoro changed the title Unpublish a duplicat dat Unpublish a duplicate dat Dec 14, 2018
@CristianCantoro
Copy link
Author

@joehand said:

Oh nope, that won't work. If you cd data-dir and then dat unpublish it will unpublish whatever name is in the dat.json file. So you can set it to the one you want to unpublish then run it. If that makes sense... ?

Ok, I will try doing that, but I would like to point out that at the moment dat unpublish is undocumented.

This is what I get with dat 13.11.4:

$ dat --help

Usage: dat <cmd> [<dir>] [options]

Sharing Files:
   dat share                   create dat, import files, share to network
   dat create                  create empty dat and dat.json
   dat sync                    import files to existing dat & sync with network

Downloading Files:
   dat clone <link> [<dir>]    download a dat via link to <dir>
   dat pull                    update dat & exit
   dat sync                    live sync files with the network

Info:
   dat log                     log history for a dat
   dat status                  get key & info about a local dat

Dat public registries:
   dat <cmd> [<registry>]      All commands take <registry> option
   dat register                register new account
   dat login                   login to your account
   dat publish                 publish a dat
   dat whoami                  print active login information
   dat logout                  logout from active login

Stateless/Shortcut Commands:
   dat <link> [<dir>]          clone or sync link to <dir>
   dat <dir>                   create and sync dat in directory

Troubleshooting & Help:
   dat doctor                  run the dat network doctor
   dat help                    print this usage guide
   dat <command> --help, -h    print help for a specific command
   dat --version, -v           print the dat version

  
General Options:
    --dir, -d             set the directory for Dat
    --port                port to use for connections (default port: 3282 or first available)
    --utp                 use utp for discovery (default: true)
    --http                serve dat over http (default port: 8080)
    --sparse              download only requested data (default: false)
    --up                  throttle upload bandwidth (1024, 1kb, 2mb, etc.)
    --down                throttle download bandwidth (1024, 1kb, 2mb, etc.)

Have fun using Dat! Learn more at docs.datproject.org

@CristianCantoro
Copy link
Author

I have issues with dat unpublish (it's throwing errors at me), I will investigate and open a separate bug report if needed.

@CristianCantoro
Copy link
Author

At the moment I am not able to run dat unpublish (see the bug referenced above)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants