Skip to content

Instantly share code, notes, and snippets.

@jon-dixon
Last active December 24, 2022 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jon-dixon/8a3f5517baea81e3522184ad502c39c5 to your computer and use it in GitHub Desktop.
Save jon-dixon/8a3f5517baea81e3522184ad502c39c5 to your computer and use it in GitHub Desktop.
ARCS Delete File PL/SQL Block Example
DECLARE
l_file_name VARCHAR2(100);
lc_arcs_base_url CONSTANT VARCHAR2(100) := 'https://<baseURL>/';
BEGIN
l_file_name := 'AAA.csv';
-- Call PL/SQL Procedure to Call the ARCS Delete REST API.
arcs_utl_pk.delete_file
(p_base_url => lc_arcs_base_url,
p_file_name => l_file_name,
p_file_path => 'inbox');
dbms_output.put_line('File ['||l_file_name||'] Deleted from ARCS');
EXCEPTION WHEN OTHERS THEN
dbms_output.put_line('Error Deleting file from ARCS ['||SQLERRM||']');
END;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment