diff --git a/byteguide/static/favicon.ico b/byteguide/static/favicon.ico index e005cd7..a26aed5 100644 Binary files a/byteguide/static/favicon.ico and b/byteguide/static/favicon.ico differ diff --git a/byteguide/templates/faq.html b/byteguide/templates/faq.html index d4c011f..cef7aa2 100644 --- a/byteguide/templates/faq.html +++ b/byteguide/templates/faq.html @@ -117,7 +117,8 @@
Upload version to project
-

Delete version

+

Delete version or project

+
Delete a version
  1. @@ -130,10 +131,38 @@

    Delete version

                 # Install Azure CLI to get access token, https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
                 $ ACCESS_TOKEN=$(az account get-access-token --scope a325c352-74f8-48eb-9ca2-3e92712b0fb4/user_impersonation --query accessToken -o tsv)
    -            $ curl -X POST -F project=your-project -F version=your-version -H "Authorization: Bearer $ACCESS_TOKEN" https://docshost.dev.ctek.com/manage/delete
    +            $ curl -X POST -F project=your-project -F version=your-version -F unique-key=your-unique-key -H "Authorization: Bearer $ACCESS_TOKEN" https://docshost.dev.ctek.com/manage/delete
                 
    + 📢Note: You can also delete ALL versions of a project by passing "version=all" to the above curl command.
+
Delete a project
+
+
    +
  1. + Get the project name. +
  2. +
  3. + Use the following curl command to delete the project +
  4. +
    +
    +            # Install Azure CLI to get access token, https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
    +            $ ACCESS_TOKEN=$(az account get-access-token --scope a325c352-74f8-48eb-9ca2-3e92712b0fb4/user_impersonation --query accessToken -o tsv)
    +            $ curl -X POST -F project=your-project -F unique-key=your-unique-key -H "Authorization: Bearer $ACCESS_TOKEN" https://docshost.dev.ctek.com/manage/delete
    +            
    + 📢Note: You can only delete a project if there are no versions left for that project, use "version=all" from above for a swift kill. +
+

Get metadata for a project

+ It's possible to read out the metadata for a project using the below curl command. This can be useful if you have lost the unique key for a project. +
+
+
+          # Install Azure CLI to get access token, https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
+          $ ACCESS_TOKEN=$(az account get-access-token --scope a325c352-74f8-48eb-9ca2-3e92712b0fb4/user_impersonation --query accessToken -o tsv)
+          $ curl -H "Authorization: Bearer $ACCESS_TOKEN" https://docshost.dev.ctek.com/browse/metadata/your-project
+
+        

Known Issues

    @@ -187,21 +216,6 @@

    Known Issues

    -
  1. - It's not possible to delete whole projects through curl - -

    -
    - Reason: - This is not yet implemented. -
    -
    - Workaround: - If you really need to delete a whole project, please contact the site admin which have access to the hosting server. -
    - Note: Version deletion is possible through curl. -

    -

FAQ