permanentDelete through SDK

Đang mở
#1,932 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
api

Hướng nghiên cứu

Start with the JavaScript SDK's support for the Microsoft Graph driveItem operations and compare the existing delete usage with the linked driveitem-permanentdelete API documentation. Confirm how the permanent-delete operation should be exposed through the SDK and verify that callers can invoke it for a OneDrive file.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

status:waiting-for-triage type:feature
Is your feature request related to a problem? Please describe the problem.

We are using the SDK in a project where we regularly need to delete files that were temporarily uploaded to OneDrive.

To do this, we use the delete function as provided by the npm package (3.0.7):

async function deleteFile(file) {
  await client
    .api(`/sites/${SITE_ID}/drive/root:/${file.id}.${file.extension}`)
    .delete();
}

However, we now noticed that the deleted files end up in the recycle bin of the site, instead of being permanently deleted. This is confirmed by the MS Graph docs: https://learn.microsoft.com/en-us/graph/api/driveitem-delete

Describe the solution you'd like.

What we really need seems to be driveitem-permanentdelete.

I couldn't find a function in the package that supports this. Is there one? If no, it there a possibility to add it?

Thanks in advance!

Additional context?

No response

Ngôn ngữ chính
TypeScript
Star
833
Fork
240
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-sdk-javascript

Tất cả issue của microsoftgraph/msgraph-sdk-javascript

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.