[ https://issues.apache.org/jira/browse/ARIA-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15870075#comment-15870075 ]
ASF GitHub Bot commented on ARIA-108: ------------------------------------- Github user mxmrlv commented on a diff in the pull request: https://github.com/apache/incubator-ariatosca/pull/71#discussion_r101534603 --- Diff: aria/storage/filesystem_rapi.py --- @@ -151,3 +149,17 @@ def upload(self, entry_id, source, path=None, **_): shutil.copy2(source, destination) else: dir_util.copy_tree(source, destination) # pylint: disable=no-member + + def delete(self, entry_id, path=None, **_): + """ + Deletes a file system storage resource. + + :param str entry_id: the id of the entry. + :param str path: a path to delete relative to the root of the entry (otherwise all). + """ + destination = os.path.join(self.directory, self.name, entry_id, path or '') + if os.path.exists(destination): --- End diff -- return True if succesfull > Add "Delete" API for resources API > ---------------------------------- > > Key: ARIA-108 > URL: https://issues.apache.org/jira/browse/ARIA-108 > Project: AriaTosca > Issue Type: Story > Reporter: Ran Ziv > Assignee: Ran Ziv > > Resources API currently only has "Upload", "Download", "Read" - it should > also expose "Delete" functionality so removed service template's resources > may be removed once the template has been deleted. -- This message was sent by Atlassian JIRA (v6.3.15#6346)