2019-12-17 11:13:32 +01:00
|
|
|
{{.RootURL}}/{{.Paste.Key}}{{.FileExt}}
|
2019-12-16 05:49:17 +01:00
|
|
|
---
|
2019-12-17 11:03:29 +01:00
|
|
|
{{if and (ne .Paste.State.String "deleted") .CanDeleteBool}}
|
2019-12-17 11:13:32 +01:00
|
|
|
with delete token: {{.RootURL}}/{{.Paste.Key}}{{.FileExt}}?deleteToken={{.Paste.DeleteToken}}
|
2019-12-16 05:49:17 +01:00
|
|
|
{{else -}}
|
|
|
|
with delete token: <unknown>
|
|
|
|
{{end -}}type: {{.Paste.Type}}
|
|
|
|
state: {{.Paste.State}}
|
2020-10-25 17:33:51 +01:00
|
|
|
{{if .Paste.CreatedAt.IsZero -}}
|
2019-12-16 05:49:17 +01:00
|
|
|
created: unknown
|
2019-09-21 13:11:38 +02:00
|
|
|
{{else -}}
|
2020-10-25 17:33:51 +01:00
|
|
|
created: {{.Paste.CreatedAt}}
|
2019-09-21 13:11:38 +02:00
|
|
|
{{end -}}
|
2020-05-11 22:32:35 +02:00
|
|
|
delete token: {{.CanDeleteString}}
|
2019-09-21 13:11:38 +02:00
|
|
|
|
2019-12-17 11:03:29 +01:00
|
|
|
{{if and (ne .Paste.State.String "deleted") .CanDeleteBool}}
|
2019-09-21 13:11:38 +02:00
|
|
|
```
|
|
|
|
# To delete this {{.Paste.Type}}, execute:
|
2019-12-17 11:13:32 +01:00
|
|
|
curl --request "DELETE" "{{.RootURL}}/{{.Paste.Key}}{{.FileExt}}?deleteToken={{.Paste.DeleteToken}}"
|
2019-09-21 13:11:38 +02:00
|
|
|
```
|
|
|
|
{{end}}
|