[API] Added function delete_contents