{"id":30924,"date":"2025-11-05T15:31:38","date_gmt":"2025-11-05T06:31:38","guid":{"rendered":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/?page_id=30924"},"modified":"2025-11-05T15:31:39","modified_gmt":"2025-11-05T06:31:39","slug":"cleaning-up-old-attachment-files","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/server-guide\/cassandra-deprecation\/cleaning-up-old-attachment-files\/","title":{"rendered":"\u53e4\u3044\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306e\u524a\u9664"},"content":{"rendered":"<p><span>Cassandra \u304b\u3089 MySQL \u304a\u3088\u3073 MS SQL \u3078\u306e\u79fb\u884c\u30d7\u30ed\u30bb\u30b9\u4e2d\u3001\u79fb\u884c\u524d\u306e\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3001\u30ea\u30cd\u30fc\u30e0\u3057\u3066\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u304c\u3001\u79fb\u884c\u524d\u306e\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306f\u81ea\u52d5\u524a\u9664\u3055\u308c\u306a\u3044\u305f\u3081\u3001<\/span><span>\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u6b8b\u308b\u4e0d\u8981\u306a\u53e4\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p>\u203b\u524a\u9664\u3057\u306a\u3044\u307e\u307e\u3067\u3082 TestRail \u3092\u5229\u7528\u3067\u304d\u307e\u3059\u304c\u3001\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5bb9\u91cf\u304c\u901a\u5e38\u306e2\u500d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u8981\u4ef6<\/h2>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><span style=\"text-decoration: underline;\"><strong>\u91cd\u8981:\u00a0 Cassandra \u306e\u5ec3\u6b62\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/strong><\/span>\n<ul>\n<li><a href=\"\/server-guide\/cassandra-deprecation\/cassandra-migration-to-mysql-for-linux\/\" target=\"_blank\" rel=\"noopener\">TestRail Server Cassandra \u304b\u3089MySQL Server\u3078\u306e\u30c7\u30fc\u30bf\u79fb\u884c\uff08Linux \u7248)<\/a><\/li>\n<li><a href=\"\/server-guide\/cassandra-deprecation\/cassandra-migration-to-ms-sql-server-for-windows\/\" target=\"_blank\" rel=\"noopener\">TestRail Server Cassandra \u304b\u3089MS SQL Server\u3078\u306e\u30c7\u30fc\u30bf\u79fb\u884c\uff08Windows\u7248)<\/a><\/li>\n<\/ul>\n<\/li>\n<li>PHP\uff08\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff09<\/li>\n<li>\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8aad\u307f\u53d6\u308a\/\u66f8\u304d\u8fbc\u307f\u6a29\u9650<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c<\/h2>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<li>\u30b7\u30a7\u30eb (\u30bf\u30fc\u30df\u30ca\u30eb\u3001PowerShell\u306a\u3069) \u3092\u958b\u304d\u3001&lt;TestRail\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;\\deprecation_script \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/li>\n<li>\u30c9\u30e9\u30a4\u30e9\u30f3 \u30e2\u30fc\u30c9\u3067\u5b9f\u884c\u3057\u3066\u3001\u524a\u9664\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u30d7\u30ec\u30d3\u30e5\u30fc\u3057\u307e\u3059\u3002(\u30c9\u30e9\u30a4\u30e9\u30f3\u3067\u30d5\u30a1\u30a4\u30eb\u306f\u524a\u9664\u3055\u308c\u307e\u305b\u3093\u3002)\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">php remove_cassandra_attachments.php &lt;\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt; --dry-run<\/pre>\n<\/li>\n<li>\u751f\u6210\u3055\u308c\u308b cassandra_files_to_delete.txt \u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u4ee5\u4e0b\u306e\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\n<ul>\n<li>\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u306a\u3044\u3053\u3068<\/li>\n<li><span>\u300c<strong>Total files deleted<\/strong>:\u00a0xxx\u300d\u3067\u8868\u793a\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u6570\u304c\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5b58\u5728\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u304a\u304a\u3088\u305d\u534a\u6570\u3067\u3042\u308b\u3053\u3068\u3002(\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306f\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u306a\u3044\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u7528\u306eCSV\u30d5\u30a1\u30a4\u30eb\u3084XML\u30d5\u30a1\u30a4\u30eb\u3082\u542b\u307e\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u53b3\u5bc6\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u6570\u304c\u534a\u5206\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002)<\/span><\/li>\n<\/ul>\n<\/li>\n<li>\u901a\u5e38\u30e2\u30fc\u30c9\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">php remove_cassandra_attachments.php &lt;\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;<\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h2>\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/h2>\n<p>\u51fa\u529b\u3055\u308c\u308b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5185\u5bb9\u306b\u5408\u308f\u305b\u3066\u3001\u9069\u5207\u306b\u5bfe\u51e6\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>Error: &#8220;No files found matching naming convention&#8221;<\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Cassandra \u306e\u5ec3\u6b62\u30d7\u30ed\u30bb\u30b9\u304c\u5b8c\u4e86\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\n<ul>\n<li><a href=\"\/server-guide\/cassandra-deprecation\/cassandra-migration-to-mysql-for-linux\/\" target=\"_blank\" rel=\"noopener\">TestRail Server Cassandra \u304b\u3089MySQL Server\u3078\u306e\u30c7\u30fc\u30bf\u79fb\u884c\uff08Linux \u7248)<\/a><\/li>\n<li><a href=\"\/server-guide\/cassandra-deprecation\/cassandra-migration-to-ms-sql-server-for-windows\/\" target=\"_blank\" rel=\"noopener\">TestRail Server Cassandra \u304b\u3089MS SQL Server\u3078\u306e\u30c7\u30fc\u30bf\u79fb\u884c\uff08Windows\u7248)<\/a><\/li>\n<\/ul>\n<\/li>\n<li>\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u65b0\u3057\u3044\u547d\u540d\u898f\u5247\u3067\u79fb\u884c\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Error: &#8220;Directory does not exist or is not readable&#8221;<\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30d1\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<li>\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8aad\u307f\u53d6\u308a\u6a29\u9650\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 class=\"\">Permission denied when deleting files<\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u304c\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u524a\u9664\u6a29\u9650\u3092\u6301\u3064\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<li>\u5fc5\u8981\u306b\u5fdc\u3058\u3066 sudo \u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 class=\"\">Error writing dry run output file<\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u304c &lt;TestRail\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;\\deprecation_script \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u6301\u3064\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<li>\u5341\u5206\u306a\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><!-- END ordered list with colored numbers --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cassandra \u304b\u3089 MySQL \u304a\u3088\u3073 MS SQL \u3078\u306e\u79fb\u884c\u30d7\u30ed\u30bb\u30b9\u4e2d\u3001\u79fb\u884c\u524d\u306e\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3001\u30ea\u30cd\u30fc\u30e0\u3057\u3066\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u304c\u3001\u79fb\u884c\u524d\u306e\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306f\u81ea\u52d5\u524a\u9664\u3055\u308c\u306a\u3044\u305f\u3081\u3001\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30ec\u30af\u30c8 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":30914,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-30924","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/30924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/comments?post=30924"}],"version-history":[{"count":28,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/30924\/revisions"}],"predecessor-version":[{"id":31001,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/30924\/revisions\/31001"}],"up":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/pages\/30914"}],"wp:attachment":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/9\/wp-json\/wp\/v2\/media?parent=30924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}