Method: files.trash
ট্র্যাশে একটি ফাইল সরান. শেয়ার্ড ড্রাইভ ফাইলের জন্য বর্তমানে প্রমাণীকৃত ব্যবহারকারীকে অবশ্যই ফাইলটির মালিক হতে হবে অথবা অন্ততপক্ষে অভিভাবকের একজন fileOrganizer
হতে হবে।
HTTP অনুরোধ
POST https://www.googleapis.com/drive/v2/files/{fileId}/trash
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
fileId | string ট্র্যাশে ফাইলের আইডি। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
supportsAllDrives | boolean অনুরোধ করা অ্যাপ্লিকেশনটি আমার ড্রাইভ এবং শেয়ার্ড ড্রাইভ উভয়কেই সমর্থন করে কিনা৷ |
supportsTeamDrives (deprecated) | boolean বাতিল করা হয়েছে: পরিবর্তে supportsAllDrives ব্যবহার করুন। |
includePermissionsForView | string প্রতিক্রিয়াতে কোন অতিরিক্ত ভিউ এর অনুমতি অন্তর্ভুক্ত করতে হবে তা নির্দিষ্ট করে। শুধুমাত্র published সমর্থিত. |
includeLabels | string প্রতিক্রিয়ার labelInfo অংশে অন্তর্ভুক্ত করার জন্য লেবেলের আইডিগুলির একটি কমা দ্বারা পৃথক করা তালিকা৷ |
শরীরের অনুরোধ
অনুরোধের বডি খালি হতে হবে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে File
একটি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/docs
-
https://www.googleapis.com/auth/drive
-
https://www.googleapis.com/auth/drive.appdata
-
https://www.googleapis.com/auth/drive.apps.readonly
-
https://www.googleapis.com/auth/drive.file
কিছু সুযোগ সীমাবদ্ধ এবং সেগুলি ব্যবহার করার জন্য আপনার অ্যাপের নিরাপত্তা মূল্যায়ন প্রয়োজন। আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-10-30 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Permanently moves a file to the trash, requiring the user to own the file or have sufficient permissions."],["Uses an HTTP POST request with the file ID as a path parameter to specify the target file."],["Allows optional query parameters to control behavior regarding shared drives, permissions, and labels."],["Requires authorization with specific OAuth scopes, including `https://www.googleapis.com/auth/drive` or similar, for access."],["Returns a File resource describing the trashed file upon successful completion."]]],["This content describes how to move a file to the trash using the Google Drive API. The process involves sending a `POST` request to `https://www.googleapis.com/drive/v2/files/{fileId}/trash`, where `fileId` is the file's ID. The request body must be empty, and optional query parameters like `supportsAllDrives` or `includeLabels` can be added. Successful requests return a `File` instance in the response. Authorization requires specific OAuth scopes, such as `https://www.googleapis.com/auth/drive`. The user must own the file.\n"]]