{"id":5879,"date":"2018-12-02T11:43:36","date_gmt":"2018-12-02T09:43:36","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5879"},"modified":"2018-12-02T11:43:36","modified_gmt":"2018-12-02T09:43:36","slug":"per-user-invocation-example-of-occ-versionscleanup-is-missing-users-list","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/12\/02\/per-user-invocation-example-of-occ-versionscleanup-is-missing-users-list\/","title":{"rendered":"Per-user invocation example of occ versions:cleanup is missing users list"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/nextcloud\/documentation\/blob\/master\/admin_manual\/configuration_server\/occ_command.rst\">&#8221;Using the occ command&#8221;<\/a>\u00a0documents using\u00a0<code>versions:cleanup<\/code>\u00a0either globally or for specific users, with example invocations for both cases. However, said examples are identical in\u00a0<a href=\"https:\/\/github.com\/nextcloud\/documentation\/blob\/a22f1055520dac2d6537fb77a6ad059b0439c2ac\/admin_manual\/configuration_server\/occ_command.rst\">the current revision<\/a>:<\/p>\n<blockquote><p>This example deletes all versions for all users:<\/p>\n<pre><code>sudo -u www-data php occ versions:cleanup\r\nDelete all versions\r\nDelete versions for users on backend Database\r\n\r\n[\u2026]\r\n<\/code><\/pre>\n<p>You can delete versions for specific users in a space-delimited list:<\/p>\n<pre><code>sudo -u www-data php occ versions:cleanup\r\nDelete versions of   freda\r\nDelete versions of   molly\r\n<\/code><\/pre>\n<\/blockquote>\n<p>Unless I&#8217;m misinterpreting this, the latter example should have the space-delimited list of users following the invocation, like so:<\/p>\n<blockquote>\n<pre><code>sudo -u www-data php occ versions:cleanup freda molly<\/code><\/pre>\n<\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8221;Using the occ command&#8221; documents using versions:cleanup globally or for specific users, with example invocations, but the examples are identical.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[13996],"class_list":["post-5879","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-nextcloud","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5879"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5879\/revisions"}],"predecessor-version":[{"id":5881,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5879\/revisions\/5881"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}