Skip to main content
client.folders.delete_folder() deletes a folder.
delete_folder requires infisicalsdk version 1.0.17 or newer.

Parameters

str
required
The ID or name of the folder.
str
required
The ID of the project.
str
required
The slug of the environment that the folder is in.
str
default:"/"
The path of the folder’s parent folder.
bool
default:"False"
Whether to delete the folder even if it still holds secrets or subfolders.
If you set force_delete=True, Infisical also deletes every secret and subfolder in the folder.

Returns

DeleteFolderResponseItem
The deleted folder, with its id, name, and description. It has no path.