Learn R Programming

osfr (version 0.1.1)

delete_component: Empty out a component and delete it

Description

This function removes all files contained in a component and then removes the component itself. NOTE: it does not request confirmation, so please handle with care. If you do not have backups of the files, it is easy to lose everything (in the component).

Usage

delete_component(id)

Arguments

id

OSF id (osf.io/XXXXX; just XXXXX)

Value

Boolean, deletion success

Examples

Run this code
# NOT RUN {
delete_component("12345")
# }

Run the code above in your browser using DataLab