Last active
December 24, 2022 14:32
-
-
Save jon-dixon/8a3f5517baea81e3522184ad502c39c5 to your computer and use it in GitHub Desktop.
ARCS Delete File PL/SQL Block Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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