Some parts of this article have been written with AI. Be aware that AI can make mistakes.
Applies to : Vista for Linux Vista for Windows

Error 3040 - Access denied: insufficient permissions to delete this shape library.

Symptoms

You encounter the following error message: "[3040] Access denied: insufficient permissions to delete this shape library." when deleting a shape library from the Installed tab of the shape libraries manager (Tools > Manage shape libraries).

Causes

Your user account does not have the permissions required to delete the library file. This can happen if:

  • The file was created by another user account (for example when running Vista as administrator or with sudo).
  • The file or its folder is marked as read-only.
  • A security software blocks the deletion.

The shape libraries folder is located at:

  • Windows: %LOCALAPPDATA%\Vista\collections
  • Linux: ~/.local/share/Vista/collections

Solutions

  1. Check the permissions of the shape libraries folder and its files:
    • Windows: right-click the file, select Properties > Security, and check that your account has the Modify permission.
    • Linux: run ls -l ~/.local/share/Vista/collections to check the owner and permissions. If the files belong to another user, run sudo chown -R $USER ~/.local/share/Vista to take ownership back.
  2. Clear the Read-only attribute of the file if needed.
  3. Retry the deletion. You can also delete the ZIP file manually from the shape libraries folder while Vista is closed.