1 ---
2 title: 'dav unlock'
3 ---
4
5 **`dav unlock [-pc] [-L <lock>] <url>`**
6
7 Unlocks the specified *url* with a lock token. If no lock token is specified with the `-L` option, it read from stdin.
8
9 **`-p`** disable file name and path decryption if enabled
10
11 **`-c`** enable file name and path decryption
12
13 **`-L <lock>`** use the specified lock token
14
15 ### Example 1: unlock with lock token from stdin
16
17 $ dav lock myserv/resource > locktoken
18 $ dav unlock myserv/resource < locktoken
19
20 ### Example 2: unlock with lock token from command line argument
21
22 $ dav lock myserv/resource
23 opaquelocktoken:0454905e-f2ff-45c4-a3d7-5c4e4db5ce37
24 $ dav unlock -L opaquelocktoken:0454905e-f2ff-45c4-a3d7-5c4e4db5ce37 myserv/resource
25
26
27