I have a Document Library, when I select some files from it the ribbon appears and I can choose "Delete Document".
I need to make a button on the page (.aspx view of the Library) that calls a javascript, which does exactly what does ribbon option does - deleting selected items.
I already used Javascript successfully to delete items in a Sharepoint list. But this time I need to delete files in the Document Library, is it possible with JS?
Thank you,