DROP
Statement
Deletes a script or page from the notebook.
Syntax
DROP SCRIPT script-name;
DROP PAGE page-name;
Parameters
- script-name: text
The name of the script to delete. This can be a string literal or an expression that evaluates to a string. - page-name: text
The name of the page to delete. This can be a string literal or an expression that evaluates to a string.
Remarks
The DROP statement permanently removes scripts and pages from the notebook. Script and page names are case-insensitive.
If the specified script or page does not exist, an error is thrown.
If the user has the script or page open in the UI when it is deleted via a DROP statement, the editor will be closed automatically.
Examples
DROP SCRIPT MyScript;
Deletes the script named "MyScript".DROP PAGE MyPage;
Deletes the page named "MyPage".DROP SCRIPT ('Report' || '2024');
Deletes the script whose name is the result of concatenating "Report" and "2024", i.e., "Report2024".