Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.BlobstoreDeleteExternal ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Original SQL ===== <code sql> COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."BlobstoreDeleteExternal" IS {create function BlobstoreDeleteExternal /* Application Maintained Function / Procedure - DO NOT EDIT*/ ( in xpath char(250) ) returns integer not deterministic begin declare delcmd char(10); if isnull(xpath,'') <> '' then if right(BlobstoreDbFolder(),1)='/' then -- sp_delete_file AVs if file does not exist so avoid set delcmd='rm ' else set delcmd='del ' end if; return xp_cmdshell(delcmd+BlobstoreFullPath(xpath),'no_output') -- Will be 0 if the file was successfully deleted else return 0 end if; end } </code> database/procedures/pears_blobstoredeleteexternal.txt Last modified: 2026/08/07 19:24by 127.0.0.1